Commit 7742bcea authored by PJ Eby's avatar PJ Eby

Missing launcher fixes

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4075544
parent de0eb5ca
......@@ -81,17 +81,18 @@ char *quoted(char *data) {
char *loadable_exe(char *exename) {
HINSTANCE hPython; /* DLL handle for python executable */
/* HINSTANCE hPython; DLL handle for python executable */
char *result;
hPython = LoadLibraryEx(exename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!hPython) return NULL;
/* hPython = LoadLibraryEx(exename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!hPython) return NULL; */
/* Return the absolute filename for spawnv */
result = calloc(MAX_PATH, sizeof(char));
if (result) GetModuleFileName(hPython, result, MAX_PATH);
strncpy(result, exename, MAX_PATH);
/*if (result) GetModuleFileName(hPython, result, MAX_PATH);
FreeLibrary(hPython);
FreeLibrary(hPython); */
return result;
}
......
No preview for this file type
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment