Skip to content

Commit 793af85

Browse files
committed
Attempt #2
1 parent 02cb5ab commit 793af85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reactpy/pyscript/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ def reactpy_version_string() -> str: # nocov
173173

174174
# Build a local wheel for ReactPy, if needed
175175
dist_dir = Path(reactpy.__file__).parent.parent.parent / "dist"
176+
if not dist_dir.exists() and (Path.cwd() / "dist").exists(): # nocov
177+
dist_dir = Path.cwd() / "dist"
178+
176179
wheel_glob = glob(str(dist_dir / f"reactpy-{local_version}-*.whl"))
177180
if not wheel_glob:
178181
_logger.warning("Attempting to build a local wheel for ReactPy...")

0 commit comments

Comments
 (0)