From 07e4f1565b8d922fe0df5cf3a15e113f7c562046 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 25 Oct 2010 17:37:23 +0000 Subject: [PATCH] sys_update_path(): update sys.path even if argc==0 --- Python/sysmodule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 6be2262c7b0..876e31e8308 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1748,8 +1748,6 @@ sys_update_path(int argc, wchar_t **argv) if (path == NULL) return; - if (argc == 0) - return; argv0 = argv[0]; #ifdef HAVE_READLINK