Fixes in scripts for fedora
This commit is contained in:
parent
d54f94379b
commit
4914a1f0e7
8 changed files with 77 additions and 17 deletions
|
|
@ -28,7 +28,13 @@ def scandir(mydir, config_parser, arr_dir=OrderedDict(), father=''):
|
|||
if 'modules' in config_parser:
|
||||
for k, v in config_parser['modules'].items():
|
||||
#arr_dir[father][os.path.basename(mydir)].append([config_parser['modules'][k], s.dumps({'file': mydir+'/'+k+'.py'}), 1])
|
||||
arr_dir[father][os.path.basename(mydir)].append([config_parser['modules'][k], mydir+'/'+k+'.py', 1])
|
||||
form=0
|
||||
|
||||
if 'form' in config_parser:
|
||||
if k in config_parser['form']:
|
||||
form=config_parser['form'][k]
|
||||
|
||||
arr_dir[father][os.path.basename(mydir)].append([config_parser['modules'][k], mydir+'/'+k+'.py', 1, form])
|
||||
|
||||
|
||||
elif os.path.isdir(mydir+'/'+one_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue