Update modules/scripts.py to use utils.parse.hashflags instead of

utils.get_hashflags
This commit is contained in:
jesopo 2018-11-05 12:15:54 +00:00
parent 7cc6b559be
commit 7baab0f7d7

View file

@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule):
def _load_scripts(self): def _load_scripts(self):
for filename in glob.glob(os.path.join(self._directory, "*")): for filename in glob.glob(os.path.join(self._directory, "*")):
name = os.path.basename(filename) 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: if hashflag == "name" and value:
name = value name = value
elif hashflag == "hook" and value: elif hashflag == "hook" and value: