예제 #1
0
option_output_dir = arguments['--folder']
option_overwrite = arguments['--overwrite']
option_json = not arguments['--no-json']
option_directory = arguments['--directory']

if arguments['--debug']:
    logger.enable_debug()

# PROJECT_DIR = os.getcwd()  # Must execute from project dir
PKG_DIR = os.path.dirname(__file__)
PROJECT_DIR = os.path.dirname(PKG_DIR)
release_dir = os.path.join(PROJECT_DIR, 'release', option_output_dir)
os.chdir(PROJECT_DIR)

# Add Paths
PATHS.append(os.path.join(PROJECT_DIR, 'bin'))
[sys.path.append(p) for p in PATHS]

# Additional Paths from Options
if option_directory:
    sys.path.append(option_directory)

logger.debug(sys.path)
logger.debug(arguments)
logger.debug(ASSEMBLIES)
if arguments['make']:
    timer = Timer()
    if not option_all:
        ASSEMBLIES = [option_assembly_name]

    for assembly_name in ASSEMBLIES:
예제 #2
0
option_output_dir = arguments["--output"]
option_path_dir = arguments["--path"]
option_json = not arguments["--no-json"]
option_overwrite = arguments["--overwrite"]

if arguments["--debug"]:
    logger.enable_debug()

# PROJECT_DIR = os.getcwd()  # Must execute from project dir
PKG_DIR = os.path.dirname(__file__)
PROJECT_DIR = os.path.dirname(PKG_DIR)
release_dir = os.path.join(PROJECT_DIR, "release", option_output_dir)
os.chdir(PROJECT_DIR)

# Add Paths
PATHS.append(os.path.join(PROJECT_DIR, "bin"))
[sys.path.append(p) for p in PATHS]

# Additional Paths from Options
if option_path_dir:
    sys.path.append(option_path_dir)

logger.debug(sys.path)
logger.debug(arguments)
logger.debug(ASSEMBLIES)
if arguments["make"]:
    timer = Timer()
    if not option_all:
        ASSEMBLIES = [option_assembly_name]

    for assembly_name in ASSEMBLIES: