PathSwitcher v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Bogor Okukuro
Detects the OS and switches the path accordingly
Requirements:
8.0, 7.0 or later
Mac, Windows
18 Sep 2014
36

Just Copy & Paste into yout init.py and make sure you enter your paths.

def filenameFix(filename, toOS = ''):

    if (os.name == 'nt') or (toOS == 'nt'):
        filename = filename.replace( 'VOLUMES/REPLACE_WITH_MACPATH', 'Z:/REPLACE_WITH_WINPATH' )
        return filename

    if (os.name == 'posix') or (toOS == 'posix'):
        filename = filename.replace( 'Z:/REPLACE_WITH_WINPATH', 'VOLUMES/REPLACE_WITH_MACPATH' )
        return filename

    return filename

Please login in order to download these files.

You have no rights to post comments

We have 3038 guests and 104 members online