コード例 #1
0
ファイル: bootstrap.py プロジェクト: toucht/SandboxCTF
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
ファイル: bootstrap.py プロジェクト: davvblack/asian_d_box
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], ''))