Lines Matching defs:path
1 /* Path configuration like module_search_path (sys.path) */
26 /* Full path to the Python program */
181 wchar_t *path = (wchar_t*)PyMem_RawMalloc(sizeof(wchar_t) * cch);
182 if (!path) {
185 wchar_t *p = path;
195 } while (p != path && *--p == DELIM);
196 _Py_path_config.calculated_module_search_path = path;
215 Py_SetPath(const wchar_t *path)
217 if (path == NULL) {
240 _Py_path_config.module_search_path = _PyMem_RawWcsdup(path);
326 /* If the user has provided a path, return that */
330 /* If we have already done calculations, return the calculated path */
382 /* Compute module search path from argv[0] or the current working
384 sys.path[0].
386 Return 1 if the path is correctly resolved and written into *path0_p.
388 Return 0 if it fails to resolve the full path. For example, return 0 if the
399 /* Leave sys.path unchanged if sys.argv is empty */
440 path0 = link; /* Link to absolute path */
443 /* Link without path */
449 /* path0 without path */
471 /* Replace the first element in argv with the full path. */