Skip to content

Commit 89cfbe8

Browse files
authored
Update PYTHONPATH in development.md (#2644)
Modify PYTHONPATH to new related directory in docs.
1 parent 8649b84 commit 89cfbe8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build_tools/write_env_file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ portable_realpath() {
1313

1414
td="$(portable_realpath "$(dirname "$0")"/..)"
1515
build_dir="$(portable_realpath "${TORCH_MLIR_BUILD_DIR:-$td/build}")"
16-
python_packages_dir="$build_dir/python_packages"
16+
python_packages_dir="$build_dir/tools/torch-mlir/python_packages"
1717

1818
write_env_file() {
1919
echo "Updating $build_dir/.env file"

docs/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ cmake --build build
109109
### Linux and macOS
110110

111111
```shell
112-
export PYTHONPATH=`pwd`/build/python_packages/torch_mlir:`pwd`/projects/pt1/examples
112+
export PYTHONPATH=`pwd`/build/tools/torch-mlir/python_packages/torch_mlir:`pwd`/projects/pt1/examples
113113
```
114114

115115
### Windows PowerShell
116116

117117
```shell
118-
$env:PYTHONPATH = "$PWD/build/python_packages/torch_mlir;$PWD/projects/pt1/examples"
118+
$env:PYTHONPATH = "$PWD/build/tools/torch-mlir/python_packages/torch_mlir;$PWD/projects/pt1/examples"
119119
```
120120

121121
## Testing MLIR output in various dialects
@@ -126,7 +126,7 @@ Make sure you have activated the virtualenv and set the `PYTHONPATH` above
126126
(if running on Windows, modify the environment variable as shown above):
127127
```shell
128128
source mlir_venv/bin/activate
129-
export PYTHONPATH=`pwd`/build/tpython_packages/torch_mlir:`pwd`/projects/pt1/examples
129+
export PYTHONPATH=`pwd`/build/tools/torch-mlir/python_packages/torch_mlir:`pwd`/projects/pt1/examples
130130
python projects/pt1/examples/torchscript_resnet18_all_output_types.py
131131
```
132132

0 commit comments

Comments
 (0)