Esempio n. 1
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)
Esempio n. 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)
Esempio n. 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())
Esempio n. 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())