]> granicus.if.org Git - python/commitdiff
sys_update_path(): update sys.path even if argc==0
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 25 Oct 2010 17:37:23 +0000 (17:37 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 25 Oct 2010 17:37:23 +0000 (17:37 +0000)
Python/sysmodule.c

index 6be2262c7b0eac70d7db0860c5133dd221061aca..876e31e8308ece2a78042b20ff823e2b0cc0f69d 100644 (file)
@@ -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