summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreuanc <ecochrane@gmail.com>2016-05-16 09:58:36 -0400
committereuanc <ecochrane@gmail.com>2016-05-16 09:58:36 -0400
commit9069537bff03c999015faede805b3332ac1e97d4 (patch)
tree183be2cb524ad564151174f109450308f737fa51
parentd4cfe401ab9a814511d548ce138801010a87465a (diff)
downloadDiskFormatID-9069537bff03c999015faede805b3332ac1e97d4.zip
DiskFormatID-9069537bff03c999015faede805b3332ac1e97d4.tar.gz
DiskFormatID-9069537bff03c999015faede805b3332ac1e97d4.tar.bz2
fixed references to ""spath"" to "spath"
-rw-r--r--chooseFormats.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/chooseFormats.py b/chooseFormats.py
index 5a753bf..0dd1dc4 100644
--- a/chooseFormats.py
+++ b/chooseFormats.py
@@ -94,7 +94,7 @@ class addTypes(QtGui.QMainWindow, chooseFormatsGUI.Ui_addTypes):
pass
#write back the remaining json
jsoutput = json.dumps(settings)
- outfile = open("spath", 'w')
+ outfile = open(spath, 'w')
outfile.write(jsoutput)
outfile.close()
@@ -155,7 +155,7 @@ class addTypes(QtGui.QMainWindow, chooseFormatsGUI.Ui_addTypes):
settings["outputFormats"] = [diskSetting]
#Clear the json file and write back the updated json
jsoutput = json.dumps(settings)
- outfile = open("spath", 'w')
+ outfile = open(spath, 'w')
outfile.write(jsoutput)
outfile.close()
self.settingsDisplay.clear()
@@ -206,7 +206,7 @@ class addTypes(QtGui.QMainWindow, chooseFormatsGUI.Ui_addTypes):
#now write this all back
settings = {"outputFormats":[diskSetting]}
jsoutput = json.dumps(settings)
- outfile = open("spath", 'w')
+ outfile = open(spath, 'w')
outfile.write(jsoutput)
outfile.close()
self.settingsDisplay.clear()