reading fucking cells
This commit is contained in:
10
econ/cells/db.py
Normal file
10
econ/cells/db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import json
|
||||
|
||||
world = {}
|
||||
|
||||
def load_world(filepath):
|
||||
file= open(filepath, 'r',encoding='UTF-8')
|
||||
data=file.readlines()
|
||||
global world
|
||||
world = json.loads(data[0])
|
||||
return world
|
||||
Reference in New Issue
Block a user