Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
34f26fcd
Commit
34f26fcd
authored
Jul 31, 2015
by
Giorgos Korfiatis
Browse files
Use os.makedirs() to make config and cache dirs
parent
d3c4cb63
Changes
2
Hide whitespace changes
Inline
Side-by-side
agkyra/config.py
View file @
34f26fcd
...
...
@@ -48,7 +48,7 @@ if os.path.exists(AGKYRA_DIR):
if
not
os
.
path
.
isdir
(
AGKYRA_DIR
):
raise
Exception
(
"Cannot create dir '%s'; file exists"
%
AGKYRA_DIR
)
else
:
os
.
m
k
dir
(
AGKYRA_DIR
)
os
.
m
ake
dir
s
(
AGKYRA_DIR
)
CONFIG_PATH
=
os
.
path
.
join
(
AGKYRA_DIR
,
'config.rc'
)
config
.
CONFIG_PATH
=
CONFIG_PATH
...
...
agkyra/syncer/setup.py
View file @
34f26fcd
...
...
@@ -239,7 +239,7 @@ class SyncerSettings():
return
raise
Exception
(
"Cannot create dir '%s'; file exists"
%
path
)
logger
.
warning
(
"Creating dir: '%s'"
%
path
)
os
.
m
k
dir
(
path
)
os
.
m
ake
dir
s
(
path
)
return
path
@
ssl_fall_back
...
...
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