Skip to content

Commit a2aa102

Browse files
authored
Adjust webplayground server to automatically grab current VERSION instead of being hardcoded (#2854)
1 parent f284b48 commit a2aa102

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

webplayground/server.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919

2020
here = Path(__file__).parent.resolve()
2121

22-
path_arcade = Path("../")
23-
arcade_wheel_filename = "arcade-4.0.0.dev4-py3-none-any.whl"
22+
path_arcade = here.parent
23+
version_file_path = path_arcade / "arcade" / "VERSION"
24+
VERSION = "unknown"
25+
with open(version_file_path, "r") as version_file:
26+
VERSION = version_file.read().rstrip()
27+
arcade_wheel_filename = f"arcade-{VERSION}-py3-none-any.whl"
2428
path_arcade_wheel = path_arcade / "dist" / arcade_wheel_filename
2529

2630
# Directory for local test scripts

0 commit comments

Comments
 (0)