Lines Matching defs:filename
81 /* Non-zero if filename, command (-c) or module (-m) is set
126 pymain_get_importer(const wchar_t *filename, PyObject **importer_p, int *exitcode)
130 sys_path0 = PyUnicode_FromWideChar(filename, wcslen(filename));
317 pymain_run_file_obj(PyObject *program_name, PyObject *filename,
320 if (PySys_Audit("cpython.run_file", "O", filename) < 0) {
324 FILE *fp = _Py_fopen_obj(filename, "rb");
329 program_name, filename, errno, strerror(errno));
347 program_name, filename);
360 int run = _PyRun_AnyFileObject(fp, filename, 1, &cf);
367 PyObject *filename = PyUnicode_FromWideChar(config->run_filename, -1);
368 if (filename == NULL) {
374 Py_DECREF(filename);
379 int res = pymain_run_file_obj(program_name, filename,
381 Py_DECREF(filename);
554 /* If filename is a package (ex: directory or ZIP file) which contains
555 __main__.py, main_importer_path is set to filename and will be