summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-25 17:37:23 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-25 17:37:23 +0000
commite5e2e0ac0400a76572f7f0cb6e14055767006828 (patch)
tree6f9ae4de8e1be65557f49337caa86280ec0b38b5 /Python/sysmodule.c
parent8dcea7080e0b623cd3a190bef6aa77ba728dc1c4 (diff)
downloadcpython-e5e2e0ac0400a76572f7f0cb6e14055767006828.tar.gz
sys_update_path(): update sys.path even if argc==0
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 6be2262c7b..876e31e830 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