mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-08 21:04:14 +00:00
create config dir
This commit is contained in:
parent
4a365f68b4
commit
c41470197e
@ -45,6 +45,9 @@ def loadConfig():
|
||||
pass
|
||||
|
||||
def saveConfig():
|
||||
configDir = os.path.dirname(configFilename)
|
||||
if not os.path.exists(configDir):
|
||||
os.makedirs(os.path.dirname(configDir))
|
||||
with open(configFilename, "wb") as csvfile:
|
||||
writer = csv.writer(csvfile, delimiter='=', escapechar='\\', quoting=csv.QUOTE_NONE)
|
||||
for key, value in sorted(configOptions.items(), key=operator.itemgetter(0)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user