Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
reset version in frozen code
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed May 26, 2021
1 parent c4ee752 commit b34787a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ def _find_frozen_openpype(use_version: str = None,
if local_version == openpype_versions[-1]:
os.environ["OPENPYPE_TRYOUT"] = "1"
openpype_versions = []

else:
print("!!! Warning: cannot determine current running version.")

Expand Down Expand Up @@ -485,7 +484,10 @@ def _find_frozen_openpype(use_version: str = None,
# get path of version specified in `--use-version`
local_version = bootstrap.get_version(OPENPYPE_ROOT)
if use_version and use_version != local_version:
openpype_versions = bootstrap.find_openpype(include_zips=True)
# force the one user has selected
openpype_version = None
openpype_versions = bootstrap.find_openpype(include_zips=True,
staging=use_staging)
v: OpenPypeVersion
found = [v for v in openpype_versions if str(v) == use_version]
if found:
Expand Down

0 comments on commit b34787a

Please sign in to comment.