mirror of
https://github.com/Findus23/nonsense.git
synced 2024-09-19 16:03:50 +02:00
fix paths
This commit is contained in:
parent
6269dd1133
commit
41a2c7264c
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue