Пример #1
0
def create_subdirs(prog_path):
    """ """
    p_log_this()
    p_glbls.dir_cfg = p_utils.p_subdir_make(os.path.join(prog_path, 'cfg'))
    p_glbls.dir_cfg = os.path.join('.', p_glbls.dir_cfg)  # cfg-dir of new y_main.py

    p_glbls.cfg_fn  = prog_path + '.cfg'   # cfg-file of new y_main.py
    p_glbls.cfg_path= os.path.join(p_glbls.dir_cfg, p_glbls.cfg_fn)

    p_glbls.cfg_fn_tmp   = p_glbls.cfg_fn[:-4] + '_' + p_glbls.date_time_str + p_glbls.cfg_fn[-4:]
    p_glbls.cfg_path_tmp = os.path.join(p_glbls.dir_cfg, p_glbls.cfg_fn_tmp)

    p_glbls.dir_lib = p_utils.p_subdir_make(os.path.join(prog_path, 'lib'))
    p_glbls.dir_lib = os.path.join('.', p_glbls.dir_lib)

    p_glbls.dir_log = p_utils.p_subdir_make(os.path.join(prog_path, 'log'))
    p_glbls.dir_log = os.path.join('.', p_glbls.dir_log)

    p_glbls.dir_DataIn  = p_utils.p_subdir_make(os.path.join(prog_path, 'DataIn'))
    p_glbls.dir_DataIn  = os.path.join('.', p_glbls.dir_DataIn)

    p_glbls.dir_DataOut = p_utils.p_subdir_make(os.path.join(prog_path, 'DataOut'))
    p_glbls.dir_DataOut = os.path.join('.', p_glbls.dir_DataOut)
Пример #2
0
def create_maindir(prog_path) :
    """ """
    p_log_this()
    p_glbls.dir_main = p_utils.p_subdir_make(prog_path)
    p_glbls.dir_main = os.path.join('.', p_glbls.dir_main)