Skip to content

Commit

Permalink
Fix error when setting up pip env for python script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh5 committed Jul 27, 2024
1 parent 9f28c3e commit baeb3ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

**<span style="color:#56adda">0.0.8</span>**
- Fix error when setting up pip env for python script execution

**<span style="color:#56adda">0.0.7</span>**
- Fix plugin when run along side another plugin that moves or removes the source file

Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"on_postprocessor_task_results": 0
},
"tags": "script,command,post-processor",
"version": "0.0.7"
"version": "0.0.8"
}
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_executable_venv_python(script_dependencies, temp_working_directory, depe

# Create venv and update executable
exec_subprocess("{} -m venv venv".format(executable), "", cwd=temp_working_directory)
executable = os.path.join("venv", "bin", "python3")
executable = os.path.join(temp_working_directory, "venv", "bin", "python3")

# Install dependencies
os.environ['PIP_CACHE_DIR'] = cache_path
Expand Down

0 comments on commit baeb3ba

Please sign in to comment.