mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
ModuleInformation create the all_modules files if missing
This commit is contained in:
parent
ccdf256383
commit
975c1a37d9
1 changed files with 11 additions and 3 deletions
|
@ -799,10 +799,18 @@ if __name__ == "__main__":
|
||||||
module_file_array = set()
|
module_file_array = set()
|
||||||
no_info_modules = {}
|
no_info_modules = {}
|
||||||
path_allmod = os.path.join(os.environ['AIL_HOME'], 'doc/all_modules.txt')
|
path_allmod = os.path.join(os.environ['AIL_HOME'], 'doc/all_modules.txt')
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open(path_allmod, 'r') as module_file:
|
||||||
|
for line in module_file:
|
||||||
|
module_file_array.add(line[:-1])
|
||||||
|
except IOError as e:
|
||||||
|
if e.errno == 2: #module_file not found, creating a new one
|
||||||
|
print(path_allmod + " not found.\nCreating a new one.")
|
||||||
|
os.system("./../doc/generate_modules_data_flow_graph.sh")
|
||||||
with open(path_allmod, 'r') as module_file:
|
with open(path_allmod, 'r') as module_file:
|
||||||
for line in module_file:
|
for line in module_file:
|
||||||
module_file_array.add(line[:-1])
|
module_file_array.add(line[:-1])
|
||||||
|
|
||||||
cleanRedis()
|
cleanRedis()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue