CHange stuff around to be a bit more resilient against errors, create
non-existent folders, add a staticPath config var
This commit is contained in:
4
run.py
4
run.py
@@ -21,11 +21,15 @@
|
||||
import config
|
||||
from gui.mainFrame import MainFrame
|
||||
import wx
|
||||
import os
|
||||
import os.path
|
||||
import eos.db
|
||||
|
||||
if __name__ == "__main__":
|
||||
#Make sure the saveddata db exists
|
||||
if not os.path.exists(config.homePath):
|
||||
os.mkdir(config.homePath)
|
||||
|
||||
if not os.path.exists(config.saveddata):
|
||||
eos.db.saveddata_meta.create_all()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user