Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
cad94273
Commit
cad94273
authored
Feb 16, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore comments
parent
e9a6d5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
setup.py
setup.py
+6
-4
No files found.
setup.py
View file @
cad94273
...
...
@@ -80,10 +80,11 @@ def read_local_conf(conf_file,pattern):
with
open
(
conf_file
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
for
line
in
lines
:
test
=
line
.
find
(
pattern
)
if
test
!=-
1
:
pars
=
line
.
split
(
"="
)[
1
]
.
strip
()
.
strip
(
"
\"
"
)
.
split
(
":"
)
ret
.
append
(
pars
)
if
line
[
0
]
!=
"#"
:
test
=
line
.
find
(
pattern
)
if
test
!=-
1
:
pars
=
line
.
split
(
"="
)[
1
]
.
strip
()
.
strip
(
"
\"
"
)
.
split
(
":"
)
ret
.
append
(
pars
)
return
ret
def
read_local_conf_dev
(
conf_file
,
pattern
):
...
...
@@ -92,6 +93,7 @@ def read_local_conf_dev(conf_file,pattern):
with
open
(
conf_file
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
for
line
in
lines
:
if
line
[
0
]
!=
"#"
:
test
=
line
.
find
(
pattern
)
if
test
!=-
1
:
ret
=
line
.
split
(
"="
)[
1
]
.
strip
()
.
strip
(
"
\"
"
)
...
...
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