mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix README.md and pype root determination when running from sources
This commit is contained in:
parent
05f4b77d6b
commit
64fcec4d4a
3 changed files with 5 additions and 14 deletions
13
README.md
13
README.md
|
|
@ -208,21 +208,10 @@ install it to user data directory (on Windows to `%LOCALAPPDATA%\pypeclub\pype`,
|
|||
### From sources
|
||||
Pype can be run directly from sources by activating virtual environment:
|
||||
|
||||
**On Windows:**
|
||||
```powershell
|
||||
.\venv\Scripts\Activate.ps1
|
||||
```
|
||||
and running:
|
||||
```powershell
|
||||
python start.py tray
|
||||
```
|
||||
**On macOS/Linux:**
|
||||
```sh
|
||||
source ./venv/bin/activate
|
||||
python start.py tray
|
||||
poetry run python start.py tray
|
||||
```
|
||||
|
||||
|
||||
This will use current Pype version with sources. You can override this with `--use-version=x.x.x` and
|
||||
then Pype will try to find locally installed specified version (present in user data directory).
|
||||
|
||||
|
|
|
|||
5
start.py
5
start.py
|
|
@ -111,6 +111,7 @@ if getattr(sys, 'frozen', False):
|
|||
paths.append(frozen_libs)
|
||||
os.environ["PYTHONPATH"] = os.pathsep.join(paths)
|
||||
|
||||
import igniter # noqa: E402
|
||||
from igniter import BootstrapRepos # noqa: E402
|
||||
from igniter.tools import get_pype_path_from_db # noqa
|
||||
from igniter.bootstrap_repos import PypeVersion # noqa: E402
|
||||
|
|
@ -469,7 +470,9 @@ def _bootstrap_from_code(use_version):
|
|||
assert local_version
|
||||
else:
|
||||
pype_root = os.path.normpath(
|
||||
os.path.dirname(os.path.realpath(__file__)))
|
||||
os.path.dirname(
|
||||
os.path.dirname(
|
||||
os.path.realpath(igniter.__file__))))
|
||||
# get current version of Pype
|
||||
local_version = bootstrap.get_local_live_version()
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
I have run
|
||||
Loading…
Add table
Add a link
Reference in a new issue