add check for the existence of the user modules directory

parent 5399178d
...@@ -16,6 +16,7 @@ def load_modules(): ...@@ -16,6 +16,7 @@ def load_modules():
all_modules = set(os.listdir(global_modules_directory)) all_modules = set(os.listdir(global_modules_directory))
if os.path.exists(local_modules_directory) and os.path.isdir(local_modules_directory):
for module_name in os.listdir(local_modules_directory): for module_name in os.listdir(local_modules_directory):
module_path = os.path.join(local_modules_directory, module_name) module_path = os.path.join(local_modules_directory, module_name)
if os.path.isdir(module_path): if os.path.isdir(module_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment