main.py: mod loader now prints start_on_boot option on module loading stage
This commit is contained in:
parent
3a5999945e
commit
30f53c08d4
4
main.py
4
main.py
|
@ -85,7 +85,7 @@ class ModuleControlUnit:
|
||||||
|
|
||||||
self.modules.append( ModuleV1( "modules/{}/".format(folder), code, enabled, alias ) )
|
self.modules.append( ModuleV1( "modules/{}/".format(folder), code, enabled, alias ) )
|
||||||
|
|
||||||
print("[INFO] reload_modules: successfully loaded {} as {}".format(folder, alias))
|
print("[INFO] reload_modules: successfully loaded {} as {} (start_on_boot: {})".format(folder, alias, enabled))
|
||||||
else:
|
else:
|
||||||
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder, meta["version"]))
|
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder, meta["version"]))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -122,7 +122,7 @@ class ModuleControlUnit:
|
||||||
|
|
||||||
self.modules.append( ModuleV1( code, enabled, alias ) )
|
self.modules.append( ModuleV1( code, enabled, alias ) )
|
||||||
|
|
||||||
print("[INFO] reload_modules: successfully loaded {} as {}".format(folder_name, alias))
|
print("[INFO] reload_modules: successfully loaded {} as {} (start_on_boot: {})".format(folder_name, alias, enabled))
|
||||||
else:
|
else:
|
||||||
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder_name, meta["version"]))
|
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder_name, meta["version"]))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue