##// END OF EJS Templates
exewrapper: add comments about PYTHONHOME...
Adrian Buehlmann -
r26664:640b807d default
parent child Browse files
Show More
@@ -67,10 +67,19 b' int main(int argc, char *argv[])'
67 }
67 }
68
68
69 pydll = NULL;
69 pydll = NULL;
70 /*
71 We first check, that environment variable PYTHONHOME is *not* set.
72 This just mimicks the behavior of the regular python.exe, which uses
73 PYTHONHOME to find its installation directory (if it has been set).
74 Note: Users of HackableMercurial are expected to *not* set PYTHONHOME!
75 */
70 if (GetEnvironmentVariable("PYTHONHOME", envpyhome,
76 if (GetEnvironmentVariable("PYTHONHOME", envpyhome,
71 sizeof(envpyhome)) == 0)
77 sizeof(envpyhome)) == 0)
72 {
78 {
73 /* environment var PYTHONHOME is not set */
79 /*
80 Environment var PYTHONHOME is *not* set. Let's see if we are
81 running inside a HackableMercurial.
82 */
74
83
75 p = strrchr(pyhome, '\\');
84 p = strrchr(pyhome, '\\');
76 if (p == NULL) {
85 if (p == NULL) {
General Comments 0
You need to be logged in to leave comments. Login now