|
|
@ -50,7 +50,7 @@ def loadConfig(): |
|
|
|
def saveConfig(): |
|
|
|
def saveConfig(): |
|
|
|
configDir = os.path.dirname(configFilename) |
|
|
|
configDir = os.path.dirname(configFilename) |
|
|
|
if not os.path.exists(configDir): |
|
|
|
if not os.path.exists(configDir): |
|
|
|
os.makedirs(os.path.dirname(configDir)) |
|
|
|
os.makedirs(configDir) |
|
|
|
with open(configFilename, "wb") as csvfile: |
|
|
|
with open(configFilename, "wb") as csvfile: |
|
|
|
writer = csv.writer(csvfile, delimiter='=', escapechar='\\', quoting=csv.QUOTE_NONE) |
|
|
|
writer = csv.writer(csvfile, delimiter='=', escapechar='\\', quoting=csv.QUOTE_NONE) |
|
|
|
for key, value in sorted(configOptions.items(), key=operator.itemgetter(0)): |
|
|
|
for key, value in sorted(configOptions.items(), key=operator.itemgetter(0)): |
|
|
|