Пример #1
0
def setup_directory(workDir, appDir):
    """Knowing the working directory, make sure this is active and tell the
    AI Sandbox module of the starting directory to find various data files."""

    os.chdir(workDir)

    from aigd import ApplicationFramework
    ApplicationFramework.setInitialDirectory(appDir)
Пример #2
0
def setup_directory(workDir, appDir):
    """Knowing the working directory, make sure this is active and tell the
    AI Sandbox module of the starting directory to find various data files."""

    os.chdir(workDir)

    from aigd import ApplicationFramework
    ApplicationFramework.setInitialDirectory(appDir)
Пример #3
0
def setup_directory(workDir):
    """Knowing the working directory, make sure this is active and tell the
    AI Sandbox module of the starting directory to find various data files."""

    os.chdir(os.path.join(workDir, 'binaries'))

    from aigd import ApplicationFramework
    ApplicationFramework.setInitialDirectory(os.path.join(sys.path[0], ''))