Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
Move elevators.json to lut/
Browse files Browse the repository at this point in the history
  • Loading branch information
darkf committed Dec 17, 2017
1 parent 44de713 commit 116a1e7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion parseElevatorTable.py
Expand Up @@ -88,7 +88,7 @@ def main():

with open(sys.argv[1], "rb") as f:
elevators = parseElevators(f, verbose=True)
with open("elevators.json", "w") as g:
with open("lut/elevators.json", "w") as g:
json.dump(elevators, g)

print "done"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -99,7 +99,7 @@ def parse_elevator_table():
try:
with open(EXE_PATH, "rb") as fp:
elevators = parseElevatorTable.parseElevators(fp)
json.dump(elevators, open("elevators.json", "w"))
json.dump(elevators, open("lut/elevators.json", "w"))
info("Done parsing elevator table")
except Exception:
traceback.print_exc()
Expand Down
2 changes: 1 addition & 1 deletion src/data.ts
Expand Up @@ -70,7 +70,7 @@ interface Elevator {
function getElevator(type: number): Elevator {
if(!elevatorInfo) {
console.log("loading elevator info")
elevatorInfo = getFileJSON("elevators.json")
elevatorInfo = getFileJSON("lut/elevators.json")
}

return elevatorInfo.elevators[type]
Expand Down

0 comments on commit 116a1e7

Please sign in to comment.