Hi all,
yesterday I was looking at bootloader code. I noticed that for
PYTHONHOME environment variable back slashes '\\' are converted to
forward slashes.
Is there any reason for that?
This is the code doing that:
./source/common/launch.c
251 /*
252 * Set up paths required by rest of this module
253 * Sets f_archivename, f_homepath
254 */
255 int setPaths(ARCHIVE_STATUS *status, char const * archivePath, char
const * archiveName)
256 {
257 #ifdef WIN32
258 char *p;
259 #endif
260 /* Get the archive Path */
261 strcpy(status->archivename, archivePath);
262 strcat(status->archivename, archiveName);
263
264 /* Set homepath to where the archive is */
265 strcpy(status->homepath, archivePath);
266 #ifdef WIN32
267 strcpy(status->homepathraw, archivePath);
268 for ( p = status->homepath; *p; p++ )
269 if (*p == '\\')
270 *p = '/';
271 #endif
272
273 return 0;
274 }
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.