Commit 0bd1bf4a authored by Sebastian Lenz's avatar Sebastian Lenz

fixed bug with converting to different directory

method opened output file as input, which doesn't lead to errors
if they are the same file
parent 222450e8
......@@ -363,7 +363,7 @@ class secHelper(QMainWindow):
lines = []
try:
with open(outFile) as infilename:
with open(fname) as infilename:
test = infilename.readline()
if not test.startswith('WaveLength;'):
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment