1
0
Fork 0
mirror of https://github.com/Findus23/nonsense.git synced 2024-09-19 16:03:50 +02:00

fix paths

This commit is contained in:
Lukas Winkler 2021-05-12 16:46:58 +02:00
parent 6269dd1133
commit 41a2c7264c
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -40,12 +40,12 @@ def letter(a, b):
return random.choice(mylist)
if os.path.isfile('ikeaname.pickle') and False: # Loading uses twice the memory and is therefore disabled
with open('ikeaname.pickle', 'rb') as handle:
if os.path.isfile('runtime/ikeaname.pickle') and False: # Loading uses twice the memory and is therefore disabled
with open('runtime/ikeaname.pickle', 'rb') as handle:
b = pickle.load(handle)
else:
table, count = gen()
with open('ikeaname.pickle', 'wb') as handle:
with open('runtime/ikeaname.pickle', 'wb') as handle:
pickle.dump((table, count), handle, protocol=pickle.HIGHEST_PROTOCOL)