This commit is contained in:
Kovid Goyal 2019-06-04 14:14:12 +05:30
parent 03f692fed8
commit 8f8a37bf94
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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) {