Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
40cb1a47
Commit
40cb1a47
authored
Apr 19, 2019
by
Дмитрий Никулин
Committed by
Никита Ефремов
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce SETTINGSD_PATH variable
parent
6883d0cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
server.py
settingsd/server.py
+8
-1
No files found.
settingsd/server.py
View file @
40cb1a47
...
...
@@ -41,7 +41,14 @@ class Server(object) :
###
def
loadModules
(
self
)
:
for
modules_path_list_item
in
(
const
.
FUNCTIONS_DIR
,
const
.
ACTIONS_DIR
,
const
.
CUSTOMS_DIR
)
:
mpath
=
os
.
environ
.
get
(
'SETTINGSD_PATH'
)
if
mpath
is
None
:
additional_module_dirs
=
[]
else
:
additional_module_dirs
=
[
dir
for
dir
in
mpath
.
split
(
':'
)
if
os
.
path
.
isdir
(
dir
)]
module_dirs
=
[
const
.
FUNCTIONS_DIR
,
const
.
ACTIONS_DIR
,
const
.
CUSTOMS_DIR
]
+
additional_module_dirs
for
modules_path_list_item
in
module_dirs
:
logger
.
debug
(
"Processing directory
\"
%
s
\"
..."
%
(
modules_path_list_item
))
sys
.
path
.
append
(
modules_path_list_item
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment