Skip to content

Commit

Permalink
fix: Allow running wave university via venv/bin/wave-university command.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Jun 27, 2023
1 parent 8fb0ca3 commit 0a91a9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions university/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ Each lesson explains a single topic and shows a short demonstration example. The
## Installation

```sh
# Create a virtual env.
python -m venv venv
# Activate virtual env (.\venv\Scripts\activate for Windows)
venv/bin/activate
# Install h2o-wave-university.
pip install h2o-wave-university
# Run it.
wave-university
```

Expand Down
2 changes: 1 addition & 1 deletion university/h2o_wave_university/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
def main():
env = os.environ.copy()
env['H2O_WAVE_PUBLIC_DIR'] = '/assets/@./h2o_wave_university/static/'
env['PATH'] += os.pathsep + os.path.dirname(sys.executable)
try:
subprocess.Popen(['wave', 'run', 'h2o_wave_university.university', '--no-reload'], cwd=sys.exec_prefix, env=env).communicate()
except KeyboardInterrupt:
pass

0 comments on commit 0a91a9e

Please sign in to comment.