Skip to content

Commit

Permalink
change the way version is stored
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-develop committed Apr 5, 2022
1 parent 13a275d commit 20c30b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions noug_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"noug_version": "0.4",
"phase": "alpha"
}
2 changes: 1 addition & 1 deletion shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
else: # there is no file
path = "<stdin>"

with open("version.json") as ver_json:
with open("noug_version.json") as ver_json:
ver_json_loaded = json.load(ver_json)
version = ver_json_loaded.get("phase") + " " + ver_json_loaded.get("noug_version")

Expand Down
2 changes: 1 addition & 1 deletion src/nougaro.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
set_symbol_table(global_symbol_table) # This function is in src.set_symbol_table


with open("version.json") as ver_json:
with open("noug_version.json") as ver_json:
ver_json_loaded = json.load(ver_json)
version_ = ver_json_loaded.get("phase") + " " + ver_json_loaded.get("noug_version")

Expand Down
5 changes: 0 additions & 5 deletions version.json

This file was deleted.

0 comments on commit 20c30b4

Please sign in to comment.