Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
c4f3a9b0
Commit
c4f3a9b0
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed non absolute path for config file argument.
parent
cc74f709
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/cc-node
+2
-1
2 additions, 1 deletion
bin/cc-node
with
2 additions
and
1 deletion
bin/cc-node
+
2
−
1
View file @
c4f3a9b0
...
@@ -7,7 +7,7 @@ import time
...
@@ -7,7 +7,7 @@ import time
import
logging
import
logging
import
logging.config
import
logging.config
from
optparse
import
OptionParser
from
optparse
import
OptionParser
from
os.path
import
isfile
from
os.path
import
isfile
,
abspath
from
daemon
import
DaemonContext
from
daemon
import
DaemonContext
...
@@ -37,6 +37,7 @@ options, args = oparser.parse_args()
...
@@ -37,6 +37,7 @@ options, args = oparser.parse_args()
if
options
.
daemonize
and
not
options
.
pidfile
:
if
options
.
daemonize
and
not
options
.
pidfile
:
sys
.
exit
(
u
'
Please supply a pid file...
'
)
sys
.
exit
(
u
'
Please supply a pid file...
'
)
options
.
config
=
abspath
(
options
.
config
)
if
not
isfile
(
options
.
config
):
if
not
isfile
(
options
.
config
):
sys
.
exit
(
u
'
Please supply a valid path to configuration file...
'
)
sys
.
exit
(
u
'
Please supply a valid path to configuration file...
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment