From 8f8a37bf946be867284c1bf4da5a59977812dab0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Jun 2019 14:14:12 +0530 Subject: [PATCH] Fix #1678 --- launcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher.c b/launcher.c index 6dfa2c531..ebb69cc84 100644 --- a/launcher.c +++ b/launcher.c @@ -33,12 +33,14 @@ safe_realpath(const char* src, char *buf, size_t buf_sz) { return true; } +#if defined(FOR_BUNDLE) || defined(__APPLE__) static inline void set_bundle_exe_dir(const wchar_t *exe_dir) { wchar_t buf[PATH_MAX+1] = {0}; swprintf(buf, PATH_MAX, L"bundle_exe_dir=%ls", exe_dir); PySys_AddXOption(buf); } +#endif #ifdef FOR_BUNDLE static int run_embedded(const char* exe_dir_, int argc, wchar_t **argv) {