Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-sip
Commits
85ec8a70
Commit
85ec8a70
authored
Jan 23, 2017
by
okhin
Browse files
Fixing the arg_parse routine
parent
30295f08
Pipeline
#779
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
85ec8a70
...
...
@@ -25,10 +25,10 @@ arg_parser = argparse.ArgumentParser(description='Manage the SIP Backend for the
config
=
configparser
.
ConfigParser
()
arg_parser
.
add_argument
(
'-c'
,
'--config'
,
help
=
"Config file"
)
arg_parser
.
parse_args
()
args
=
arg_parser
.
parse_args
()
try
:
logging
.
debug
(
"Let's use {} as a config file"
.
config
(
arg_parser
.
config
,))
config
.
read
(
arg
_parser
.
config
)
config
.
read
(
arg
s
.
config
)
except
AttributeError
:
try
:
if
os
.
path
.
isfile
(
'config.ini'
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment