summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-25 17:37:23 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-25 17:37:23 (GMT)
commit07e4f1565b8d922fe0df5cf3a15e113f7c562046 (patch)
tree45e3f8b584e12eb272f8999bc96daf33e46fa9d7 /Python
parentd960faec867c56083116744db76c2d1bad51bc93 (diff)
downloadcpython-07e4f1565b8d922fe0df5cf3a15e113f7c562046.zip
cpython-07e4f1565b8d922fe0df5cf3a15e113f7c562046.tar.gz
cpython-07e4f1565b8d922fe0df5cf3a15e113f7c562046.tar.bz2
sys_update_path(): update sys.path even if argc==0
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 6be2262..876e31e 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