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
8.0, 7.0 or later
Mac, Windows
18 Sep 2014

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

def filenameFix(filename, toOS = ''):

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

    if ( == '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 2537 guests and 79 members online