Skip to content

Commit

Permalink
add aas_compliance_tool to PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosty2500 committed Dec 17, 2024
1 parent 4f15ce2 commit a4728f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compliance_tool/test/test_aas_compliance_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def _run_compliance_tool(*compliance_tool_args, **kwargs) -> subprocess.Complete
Positional arguments are passed to the compliance tool, while keyword arguments are passed to subprocess.run().
"""
env = os.environ.copy()
parent_dir = os.path.join(
os.path.dirname(os.path.dirname(__file__)),
'aas_compliance_tool'
)
env["PYTHONPATH"] = parent_dir + os.pathsep + env.get("PYTHONPATH", "")
compliance_tool_path = os.path.join(
os.path.dirname(os.path.dirname(__file__)),
'aas_compliance_tool',
Expand Down

0 comments on commit a4728f1

Please sign in to comment.