Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
1.8.1
-
None
-
Severity 2 - Major
Description
Hello!
We use a few custom hooks to validate stuff on commit. Those hooks need to load some Python libraries listed in PYTHONPATH. When using the command line hg everything works fine, but when trying to commit from SourceTree I get errors about Python being unable to load the modules.
I tried running SourceTree from a shell session that has the proper value in PYTHONPATH but it doesn't work better. I also tried setting PYTHONPATH through launchctl (with a logout+login) but I get the same error. I'm guessing that SourceTree somehows completely overrides the PYTHONPATH when invoking hg.
Thanks!
Martin