Update utils.py
This commit is contained in:
parent
f82be5bc64
commit
06fcdb4f94
|
@ -233,11 +233,11 @@ script_props = {}
|
|||
script_props_defaults = {}
|
||||
def fetch_script_props(file):
|
||||
with open(file) as f:
|
||||
if '/' in file:
|
||||
file = file.split('/')[-1]
|
||||
if '\\' in file:
|
||||
file = file.split('\\')[-1]
|
||||
name = file.rsplit('.')[0]
|
||||
if '/' in name:
|
||||
name = name.replace('/','.')
|
||||
if '\\' in file:
|
||||
name = name.replace('\\','.')
|
||||
script_props[name] = []
|
||||
script_props_defaults[name] = []
|
||||
lines = f.read().splitlines()
|
||||
|
|
Loading…
Reference in a new issue