Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
piphone-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
piphone-sip
Commits
a7c52b5e
Commit
a7c52b5e
authored
Jan 23, 2017
by
okhin
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the args parse part of the code
parent
85ec8a70
Pipeline
#780
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
piphone.py
piphone.py
+3
-2
No files found.
piphone.py
View file @
a7c52b5e
...
...
@@ -27,9 +27,10 @@ config = configparser.ConfigParser()
arg_parser
.
add_argument
(
'-c'
,
'--config'
,
help
=
"Config file"
)
args
=
arg_parser
.
parse_args
()
try
:
logging
.
debug
(
"Let's use {} as a config file"
.
config
(
arg_parser
.
config
,))
logging
.
debug
(
"Let's use {} as a config file"
.
format
(
args
.
config
,))
config
.
read
(
args
.
config
)
except
AttributeError
:
except
AttributeError
as
e
:
print
(
e
)
try
:
if
os
.
path
.
isfile
(
'config.ini'
):
logging
.
debug
(
"Let's use config.ini as a config file"
)
...
...
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