Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GEPARD
GEPARD
Commits
c6633317
Commit
c6633317
authored
Oct 30, 2018
by
Lars Bittrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ramancontrol: replaced absolute path with __file__ path
parent
63f87eae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ramancontrol.py
ramancontrol.py
+3
-2
No files found.
ramancontrol.py
View file @
c6633317
...
...
@@ -23,11 +23,12 @@ import configparser
__all__
=
[
"RamanControl"
,
"defaultPath"
,
"simulatedRaman"
]
defaultPath
=
os
.
path
.
split
(
__file__
)[
0
]
config
=
configparser
.
ConfigParser
()
config
.
read
(
'D://Projekte//Gepard//gepard//gepard.cfg'
)
#absolute path to config file
config
.
read
(
os
.
path
.
join
(
defaultPath
,
'gepard.cfg'
))
interface
=
"SIMULATED_RAMAN_CONTROL"
defaultPath
=
os
.
path
.
split
(
__file__
)[
0
]
try
:
defaultPath
=
config
[
"Defaults"
][
"file_path"
]
...
...
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