Skip sample module

This commit is contained in:
Marcel Schwarz 2019-12-14 04:13:35 +01:00
parent 88514af6f9
commit 03005113b2

View File

@ -6,6 +6,10 @@ import os
def get_modules(): def get_modules():
modules = [] modules = []
for folder in os.listdir("./modules"): for folder in os.listdir("./modules"):
#skipping sample module
if folder == "sample":
continue
print("Module found: " + folder) print("Module found: " + folder)
curr_module = importlib.import_module('.' + folder, package="modules") curr_module = importlib.import_module('.' + folder, package="modules")
print("Try to load module: " + folder) print("Try to load module: " + folder)