Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54fa0eb

Browse files
committed
Use python -m instead of PYTHONPATH=.
1 parentf89d819 commit54fa0eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ Several debuggers are provided, including [snoop](https://github.com/alexmojaki/
136136

137137
1. Install Python 3.8 and[poetry](https://python-poetry.org/docs/#installation).
138138
2. Run`poetry install` to install Python dependencies.
139-
3.- On Linux/Mac OS, run`PYTHONPATH=. poetry run python core/generate_static_files.py`.
140-
- On Windows, create an environment variable named`PYTHONPATH`, set its value to the directory of the repository base and run`poetry run python core/generate_static_files.py`.
141-
3. In the`frontend` folder:
139+
3. Run`poetry run python -m core.generate_static_files`.
140+
4. In the`frontend` folder:
142141
1. Ensure you have version 14.15.4 (lts/fermium) of`node` and version 7.5.2 of`npm`.
143142

144143
2. Run`npm ci` to download dependencies.

‎core/generate_static_files.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
For example, you could use watchdog (https://github.com/gorakhargosh/watchdog):
1111
1212
pip install 'watchdog[watchmedo]'
13-
PYTHONPATH=.watchmedo shell-command core\
13+
watchmedo shell-command core\
1414
--recursive\
1515
--ignore-directories\
1616
--ignore-pattern '*~'\
1717
--drop\
18-
--command "python core/generate_static_files.py"
18+
--command "python-mcore.generate_static_files"
1919
"""
2020

2121

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp