Skip to content

Commit

Permalink
bootloader: Don't use the traceback added in pyinstaller#4592 when ru…
Browse files Browse the repository at this point in the history
…nning on macOS

See pyinstaller#4860.
  • Loading branch information
Legorooj committed May 15, 2020
1 parent fe09117 commit 927c205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootloader/src/pyi_launch.c
Expand Up @@ -420,7 +420,7 @@ pyi_launch_run_scripts(ARCHIVE_STATUS *status)
if (!retval) {
FATALERROR("Failed to execute script %s\n", ptoc->name);

#if defined(WINDOWED) && defined(LAUNCH_DEBUG)
#if defined(WINDOWED) && defined(LAUNCH_DEBUG) && !defined(__APPLE__)
/* Visual C++ requires all variables to be declared before any
* statements in a given block. The curly braces below create a
* block to make this compiler happy. */
Expand Down Expand Up @@ -466,11 +466,11 @@ pyi_launch_run_scripts(ARCHIVE_STATUS *status)
Py_DECREF(module);
}

#else /* if defined(WINDOWED) and defined(LAUNCH_DEBUG) */
#else /* if defined(WINDOWED) and defined(LAUNCH_DEBUG) and not defined(__APPLE__) */

PI_PyErr_Print();

#endif /* if defined(WINDOWED) and defined(LAUNCH_DEBUG) */
#endif /* if defined(WINDOWED) and defined(LAUNCH_DEBUG) and not defined(__APPLE__) */

return -1;
}
Expand Down

0 comments on commit 927c205

Please sign in to comment.