Bug fix: Create 'logs' and 'profiles' directories if non-existant
This commit is contained in:
parent
4d5a6e62f6
commit
55f74926fc
2 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,7 @@ CHANGELOG
|
|||
* Auto rejoin memos on reconnect - Kiooeht [evacipatedBox]
|
||||
* De-Op in memos correctly - Kiooeht [evacipatedBox]
|
||||
* Don't blow up if someone's not using Pesterchum in a memo - Kiooeht [evacipatedBox]
|
||||
* Make 'logs' and 'profiles' directories if non-existant - Kiooeht [evacipatedBox]
|
||||
|
||||
### 3.14.1
|
||||
* Pesterchum 3.14 - illuminatedwax [ghostDunk]
|
||||
|
|
|
@ -37,6 +37,14 @@ if sys.platform == "darwin":
|
|||
if not os.path.exists(_datadir+"pesterchum.js"):
|
||||
f = open(_datadir+"pesterchum.js", 'w')
|
||||
f.close()
|
||||
else:
|
||||
if not os.path.exists("logs"):
|
||||
os.mkdir("logs")
|
||||
if not os.path.exists("profiles"):
|
||||
os.mkdir("profiles")
|
||||
if not os.path.exists("pesterchum.js"):
|
||||
f = open("pesterchum.js", 'w')
|
||||
f.close()
|
||||
|
||||
class waitingMessageHolder(object):
|
||||
def __init__(self, mainwindow, **msgfuncs):
|
||||
|
|
Loading…
Reference in a new issue