Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
ba78ef99
Commit
ba78ef99
authored
5 years ago
by
James Harle
Browse files
Options
Download
Email Patches
Plain Diff
Insert trailing slash on dst_dir if not present (Closes
#28
)
parent
247fa280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
pynemo/nemo_bdy_setup.py
pynemo/nemo_bdy_setup.py
+4
-0
No files found.
pynemo/nemo_bdy_setup.py
View file @
ba78ef99
...
...
@@ -99,6 +99,8 @@ class Setup(object):
raise
elif
name_prefix
==
'cn'
or
name_prefix
==
'sn'
:
value
=
value_str
.
strip
(
"'"
)
if
name
==
'dst_dir'
:
value
=
os
.
path
.
join
(
value
,
''
)
elif
name_prefix
==
'cl'
:
name
=
key_value
[
0
].
split
(
'('
)
index
=
name
[
1
].
split
(
')'
)
...
...
@@ -229,6 +231,8 @@ def _get_val(vars_dictionary, bool_vars_dictionary, line):
raise
elif
name_prefix
==
'cn'
or
name_prefix
==
'sn'
:
vars_dictionary
[
name
]
=
value
.
strip
(
"'"
)
if
name
==
'dst_dir'
:
vars_dictionary
[
name
]
=
os
.
path
.
join
(
vars_dictionary
[
name
],
''
)
elif
name_prefix
==
'cl'
:
name
=
line
[
0
].
split
(
'('
)
index
=
name
[
1
].
split
(
')'
)
...
...
This diff is collapsed.
Click to expand it.
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