Update modules/scripts.py to use utils.parse.hashflags instead of
utils.get_hashflags
This commit is contained in:
parent
7cc6b559be
commit
7baab0f7d7
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule):
|
|||
def _load_scripts(self):
|
||||
for filename in glob.glob(os.path.join(self._directory, "*")):
|
||||
name = os.path.basename(filename)
|
||||
for hashflag, value in utils.get_hashflags(filename):
|
||||
for hashflag, value in utils.parse.hashflags(filename):
|
||||
if hashflag == "name" and value:
|
||||
name = value
|
||||
elif hashflag == "hook" and value:
|
||||
|
|
Loading…
Reference in a new issue