コード例 #1
0
ファイル: app_utils.py プロジェクト: okyx10a/coreflightexec
def create_cfs_dirs(tgtApp):
    OutputDir = app_code_configs.get_outdir()
    Tables = app_code_configs.get_tables()

    # Create the app's top-level directory
    level0 = os.path.join(OutputDir, tgtApp.lower())
    create_a_dir(level0)

    # Create "fsw" sub-directory
    level1 = os.path.join(level0, "fsw")
    create_a_dir(level1)

    # Create sub-directories under "fsw/"
    subdirs = ['for_build', 'mission_inc', 'platform_inc', 'src', 'unit_test']
    if "none" in Tables:
        # Remove directory tree
        level2 = os.path.join(level1, "tables")
        remove_dir_tree(level2)
    elif "iload" in Tables or "cds" in Tables:
        subdirs.append("tables")
    else:
        pass

    for item in subdirs:
        level2 = os.path.join(level1, item)
        create_a_dir(level2)
コード例 #2
0
def create_cfs_dirs(tgtApp):
    OutputDir = app_code_configs.get_outdir()
    Tables = app_code_configs.get_tables()

    # Create the app's top-level directory
    level0 = os.path.join(OutputDir, tgtApp.lower())
    create_a_dir(level0)

    # Create "fsw" sub-directory
    level1 = os.path.join(level0, "fsw")
    create_a_dir(level1)

    # Create sub-directories under "fsw/"
    subdirs = ["for_build", "mission_inc", "platform_inc", "src", "unit_test"]
    if "none" in Tables:
        # Remove directory tree
        level2 = os.path.join(level1, "tables")
        remove_dir_tree(level2)
    elif "iload" in Tables or "cds" in Tables:
        subdirs.append("tables")
    else:
        pass

    for item in subdirs:
        level2 = os.path.join(level1, item)
        create_a_dir(level2)
コード例 #3
0
def inits():
    global g_OutDir, g_Owner, g_Date, g_Tbls

    g_OutDir = app_code_configs.get_outdir()
    g_Owner = app_code_configs.get_owner()
    g_Date = app_code_configs.get_date()

    g_Tbls.extend(app_code_configs.get_tables())
コード例 #4
0
def inits():
    global g_OutDir, g_Owner, g_Date, g_Tbls

    g_OutDir = app_code_configs.get_outdir()
    g_Owner = app_code_configs.get_owner()
    g_Date = app_code_configs.get_date()

    g_Tbls.extend(app_code_configs.get_tables())
コード例 #5
0
ファイル: app_code_tests.py プロジェクト: dyfios/SDNSat
def inits():
    global g_OutDir, g_Date, g_Owner

    g_Date = app_code_configs.get_date()
    g_OutDir = app_code_configs.get_outdir()
    g_Owner = app_code_configs.get_owner()
コード例 #6
0
def inits():
    global g_OutDir

    g_OutDir = app_code_configs.get_outdir()
コード例 #7
0
ファイル: app_code_cmake.py プロジェクト: vts28/CS4961
def inits():
    global g_OutDir

    g_OutDir = app_code_configs.get_outdir()
コード例 #8
0
ファイル: app_code_tests.py プロジェクト: Spacecraft-Code/cFE
def inits():
    global g_OutDir, g_Date, g_Owner

    g_Date = app_code_configs.get_date()
    g_OutDir = app_code_configs.get_outdir()
    g_Owner = app_code_configs.get_owner()