comparison Python/sysmodule.c @ 65638:d7d323de35e7

sys_update_path(): update sys.path even if argc==0
author Victor Stinner <victor.stinner@haypocalc.com>
date Mon, 25 Oct 2010 17:37:23 +0000
parents be8ae6b17539
children 8304bd765bcf
comparison
equal deleted inserted replaced
65637:4e92cdefe4c7 65638:d7d323de35e7
1746 1746
1747 path = PySys_GetObject("path"); 1747 path = PySys_GetObject("path");
1748 if (path == NULL) 1748 if (path == NULL)
1749 return; 1749 return;
1750 1750
1751 if (argc == 0)
1752 return;
1753 argv0 = argv[0]; 1751 argv0 = argv[0];
1754 1752
1755 #ifdef HAVE_READLINK 1753 #ifdef HAVE_READLINK
1756 if (_HAVE_SCRIPT_ARGUMENT(argc, argv)) 1754 if (_HAVE_SCRIPT_ARGUMENT(argc, argv))
1757 nr = _Py_wreadlink(argv0, link, MAXPATHLEN); 1755 nr = _Py_wreadlink(argv0, link, MAXPATHLEN);