Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Félix Hartmann
XyDyS
Commits
d2c5ccf7
Commit
d2c5ccf7
authored
Sep 18, 2017
by
Félix Hartmann
Browse files
[bugfix] Make 'getcwd' function work for both Python 2 and 3, through
alias.
parent
3e407b95
Changes
1
Show whitespace changes
Inline
Side-by-side
controlpanel.py
View file @
d2c5ccf7
...
...
@@ -357,7 +357,7 @@ class ControlPanel(HasTraits):
output
=
self
.
settings_file
.
edit_traits
()
if
output
:
file_name
=
self
.
settings_file
.
file_name
if
not
file_name
or
file_name
==
os
.
getcwd
u
():
if
not
file_name
or
file_name
==
getcwd
():
return
False
if
not
file_name
[
-
5
:]
==
".json"
:
file_name
+=
".json"
...
...
@@ -514,10 +514,10 @@ class ControlPanel(HasTraits):
Item
(
'enlargement_threshold'
),
Item
(
'growth_prefactor'
),
Item
(
'identity_signal'
,
editor
=
EnumEditor
(
name
=
'signal_names'
,
cols
=
4
),
editor
=
EnumEditor
(
name
=
'signal_names'
,
cols
=
2
),
style
=
"custom"
),
Item
(
'growth_control_signals'
,
editor
=
CheckListEditor
(
name
=
'signal_names'
,
cols
=
4
),
editor
=
CheckListEditor
(
name
=
'signal_names'
,
cols
=
2
),
style
=
"custom"
),
Item
(
'add_signal'
,
show_label
=
False
),
label
=
"Model"
,
...
...
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