Debug load config with outfile
This commit is contained in:
@@ -1 +1 @@
|
|||||||
20230421-0031
|
20230421-0754
|
||||||
2
main.py
2
main.py
@@ -128,6 +128,8 @@ class ClercAttrib2Biz():
|
|||||||
with open(os.path.join(temp_dir,"config.dat"),"wb") as pickle_file:
|
with open(os.path.join(temp_dir,"config.dat"),"wb") as pickle_file:
|
||||||
pickle.dump(self.config,pickle_file, pickle.HIGHEST_PROTOCOL)
|
pickle.dump(self.config,pickle_file, pickle.HIGHEST_PROTOCOL)
|
||||||
def load_config(self):
|
def load_config(self):
|
||||||
|
if not os.path.exists(os.path.join(temp_dir, "config.dat")):
|
||||||
|
self.save_config()
|
||||||
with open(os.path.join(temp_dir, "config.dat"), "rb") as pickle_file:
|
with open(os.path.join(temp_dir, "config.dat"), "rb") as pickle_file:
|
||||||
self.config = pickle.load(pickle_file)
|
self.config = pickle.load(pickle_file)
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
VERSION = "20230421-0031"
|
VERSION = "20230421-0754"
|
||||||
Reference in New Issue
Block a user