Commit 61fe9214 authored by Devaev Maxim's avatar Devaev Maxim

Refactored package structure, added empty folders

parent 8ec13714
......@@ -6,9 +6,9 @@ MY_NAME = "settingsd"
VERSION = "0.1"
FUNCTIONS_DIR = "functions"
ACTIONS_DIR = "actions"
CUSTOMS_DIR = "customs"
FUNCTIONS_DIR = "plugins/functions"
ACTIONS_DIR = "plugins/actions"
CUSTOMS_DIR = "plugins/customs"
CONFIGS_DIR = "configs"
CONFIG_FILE_POSTFIX = ".conf"
......
......@@ -44,7 +44,9 @@ class Server(object) :
logger.debug("Processing directory \"%s\"..." % (modules_path_list_item))
sys.path.append(modules_path_list_item)
for module_name in [ item[:-3] for item in os.listdir(modules_path_list_item) if item.endswith(".py") ] :
for module_name in [ item[:-3] for item in os.listdir(modules_path_list_item)
if item.endswith(".py") and not item.startswith(".") ] :
try :
self._modules_list.append(__import__(module_name, globals(), locals(), [""]))
except :
......
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