Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07e4f15

Browse files
author
Victor Stinner
committed
sys_update_path(): update sys.path even if argc==0
1 parent d960fae commit 07e4f15

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Python/sysmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,6 @@ sys_update_path(int argc, wchar_t **argv)
17481748
if (path == NULL)
17491749
return;
17501750

1751-
if (argc == 0)
1752-
return;
17531751
argv0 = argv[0];
17541752

17551753
#ifdef HAVE_READLINK

0 commit comments

Comments
 (0)