diff --git a/README.md b/README.md index c43b8c0d4b..456655bfb9 100644 --- a/README.md +++ b/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). diff --git a/start.py b/start.py index 875a69f604..8d60a14403 100644 --- a/start.py +++ b/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() diff --git a/test_localsystem.txt b/test_localsystem.txt deleted file mode 100644 index dde7986af8..0000000000 --- a/test_localsystem.txt +++ /dev/null @@ -1 +0,0 @@ -I have run