Skip to content

Commit

Permalink
Load system PYTHONPATH during LLVM lit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henrytwo authored and antoniojkim committed Jun 30, 2022
1 parent 7d1b37f commit cfe0d56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@

if config.enable_bindings_python:
llvm_config.with_environment('PYTHONPATH', [
os.path.join(config.torch_mlir_python_packages_dir, 'torch_mlir'),
],
append_path=True)
os.pathsep.join([
os.path.join(config.torch_mlir_python_packages_dir, 'torch_mlir'),
os.environ['PYTHONPATH'],
]),
], append_path=True)

0 comments on commit cfe0d56

Please sign in to comment.