mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
...
This commit is contained in:
parent
275b8ce2e7
commit
74c4e94c3d
1 changed files with 4 additions and 2 deletions
|
|
@ -54,7 +54,8 @@ set_xoptions(const wchar_t *exe_dir, const char *lc_ctype, bool from_source) {
|
|||
}
|
||||
|
||||
#ifdef FOR_BUNDLE
|
||||
static int run_embedded(const char* exe_dir_, const char *libpath, int argc, wchar_t **argv, const char *lc_ctype) {
|
||||
static int
|
||||
run_embedded(const char* exe_dir_, const char *libpath, int argc, wchar_t **argv, const char *lc_ctype) {
|
||||
int num;
|
||||
Py_NoSiteFlag = 1;
|
||||
Py_FrozenFlag = 1;
|
||||
|
|
@ -100,7 +101,8 @@ end:
|
|||
return ret;
|
||||
}
|
||||
#else
|
||||
static int run_embedded(const char* exe_dir_, const char *libpath, int argc, wchar_t **argv, const char *lc_ctype) {
|
||||
static int
|
||||
run_embedded(const char* exe_dir_, const char *libpath, int argc, wchar_t **argv, const char *lc_ctype) {
|
||||
(void)libpath;
|
||||
wchar_t *exe_dir = Py_DecodeLocale(exe_dir_, NULL);
|
||||
if (exe_dir == NULL) { fprintf(stderr, "Fatal error: cannot decode exe_dir: %s\n", exe_dir_); return 1; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue