From: Victor Stinner Date: Mon, 25 Oct 2010 17:37:23 +0000 (+0000) Subject: sys_update_path(): update sys.path even if argc==0 X-Git-Tag: v3.2a4~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07e4f1565b8d922fe0df5cf3a15e113f7c562046;p=thirdparty%2FPython%2Fcpython.git sys_update_path(): update sys.path even if argc==0 --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 6be2262c7b0e..876e31e8308e 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