FEAT: ajoute des balises if True: pour personnaliser le code
This commit is contained in:
@@ -5,40 +5,45 @@ import json
|
|||||||
folders_list = []
|
folders_list = []
|
||||||
|
|
||||||
### CLIPS
|
### CLIPS
|
||||||
root_path = os.path.join("G:\\_PRO\\CLIPS")
|
if True:
|
||||||
folders_list += [ f.path for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
root_path = os.path.join("G:\\_PRO\\CLIPS")
|
||||||
folders_list += [ f.path for f in os.scandir(
|
folders_list += [ f.path for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
||||||
|
folders_list += [ f.path for f in os.scandir(
|
||||||
os.path.join(root_path, "_ARCHIVES (EXPORTS SEULS)")
|
os.path.join(root_path, "_ARCHIVES (EXPORTS SEULS)")
|
||||||
) if f.is_dir()]
|
) if f.is_dir()]
|
||||||
|
|
||||||
|
|
||||||
### COMMERCIAL
|
### COMMERCIAL
|
||||||
root_path = os.path.join("G:\\_PRO\\COMMERCIAL")
|
if True:
|
||||||
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
root_path = os.path.join("G:\\_PRO\\COMMERCIAL")
|
||||||
|
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
||||||
|
|
||||||
for prod_name in prods:
|
for prod_name in prods:
|
||||||
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
||||||
|
|
||||||
|
|
||||||
### DOCU
|
### DOCU
|
||||||
root_path = os.path.join("G:\\_PRO\\DOCU")
|
if True:
|
||||||
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
root_path = os.path.join("G:\\_PRO\\DOCU")
|
||||||
|
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
||||||
|
|
||||||
for prod_name in prods:
|
for prod_name in prods:
|
||||||
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
||||||
|
|
||||||
|
|
||||||
### FICTIONS
|
### FICTIONS
|
||||||
root_path = os.path.join("G:\\_PRO\\FICTIONS")
|
if True:
|
||||||
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
root_path = os.path.join("G:\\_PRO\\FICTIONS")
|
||||||
|
prods = [ f.name for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
||||||
|
|
||||||
for prod_name in prods:
|
for prod_name in prods:
|
||||||
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
folders_list += [f.path for f in os.scandir(os.path.join(root_path, prod_name)) if f.is_dir()]
|
||||||
|
|
||||||
|
|
||||||
### WEB
|
### WEB
|
||||||
root_path = os.path.join("G:\\_PRO\\WEB")
|
if True:
|
||||||
folders_list += [ f.path for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
root_path = os.path.join("G:\\_PRO\\WEB")
|
||||||
|
folders_list += [ f.path for f in os.scandir(root_path) if f.is_dir() and not f.name.startswith('_')]
|
||||||
|
|
||||||
|
|
||||||
# Write args.json
|
# Write args.json
|
||||||
|
|||||||
Reference in New Issue
Block a user