- modified the new database to accept data from NCC and Paint Tools

This commit is contained in:
Marius Stanciu
2020-03-29 14:22:11 +03:00
committed by Marius
parent 5554cf0afa
commit 1ca650e883
4 changed files with 402 additions and 44 deletions

View File

@@ -140,7 +140,7 @@ class App(QtCore.QObject):
# ################## Version and VERSION DATE ##############################
# ##########################################################################
version = 8.992
version_date = "2020/02/22"
version_date = "2020/03/27"
beta = True
engine = '3D'
@@ -353,14 +353,14 @@ class App(QtCore.QObject):
f.close()
# create fctool_tools_db.FlatDB file if there is none
try:
f = open(self.data_path + '/fctool_tools_db.FlatDB')
f.close()
except IOError:
App.log.debug('Creating empty fctool_tool_db.FlatDB')
f = open(self.data_path + '/fctool_tools_db.FlatDB', 'w')
json.dump({}, f)
f.close()
# try:
# f = open(self.data_path + '/fctool_tools_db.FlatDB')
# f.close()
# except IOError:
# App.log.debug('Creating empty fctool_tool_db.FlatDB')
# f = open(self.data_path + '/fctool_tools_db.FlatDB', 'w')
# json.dump({}, f)
# f.close()
# create current_defaults.FlatConfig file if there is none
try: