Lines Matching refs:config
341 const PyConfig *config = _PyInterpreterState_GetConfig(ts->interp);
342 if (config->verbose) {
867 const PyConfig *config = _PyInterpreterState_GetConfig(interp);
868 return PyUnicode_FromWideChar(config->filesystem_encoding, -1);
882 const PyConfig *config = _PyInterpreterState_GetConfig(interp);
883 return PyUnicode_FromWideChar(config->filesystem_errors, -1);
2208 _PySys_ReadPreinitXOptions(PyConfig *config)
2214 status = PyWideStringList_Append(&config->xoptions, entry->value);
2231 * interpreter config. When that happens, we need to properly set
2232 * the `warnoptions` reference in the main interpreter config as well.
2327 * interpreter config. When that happens, we need to properly set
2328 * the `xoptions` reference in the main interpreter config as well.
2548 const PyConfig *config = _PyInterpreterState_GetConfig(interp);
2565 SetFlag(config->parser_debug);
2566 SetFlag(config->inspect);
2567 SetFlag(config->interactive);
2568 SetFlag(config->optimization_level);
2569 SetFlag(!config->write_bytecode);
2570 SetFlag(!config->user_site_directory);
2571 SetFlag(!config->site_import);
2572 SetFlag(!config->use_environment);
2573 SetFlag(config->verbose);
2574 SetFlag(config->bytes_warning);
2575 SetFlag(config->quiet);
2576 SetFlag(config->use_hash_seed == 0 || config->hash_seed != 0);
2577 SetFlag(config->isolated);
2578 SetFlagObj(PyBool_FromLong(config->dev_mode));
2580 SetFlag(config->warn_default_encoding);
2581 SetFlagObj(PyBool_FromLong(config->safe_path));
3047 sys_create_xoptions_dict(const PyConfig *config)
3049 Py_ssize_t nxoption = config->xoptions.length;
3050 wchar_t * const * xoptions = config->xoptions.items;
3075 const PyConfig *config = _PyInterpreterState_GetConfig(interp);
3089 if (config->module_search_paths_set) {
3090 COPY_LIST("path", config->module_search_paths);
3093 COPY_WSTR("executable", config->executable);
3094 COPY_WSTR("_base_executable", config->base_executable);
3095 COPY_WSTR("prefix", config->prefix);
3096 COPY_WSTR("base_prefix", config->base_prefix);
3097 COPY_WSTR("exec_prefix", config->exec_prefix);
3098 COPY_WSTR("base_exec_prefix", config->base_exec_prefix);
3099 COPY_WSTR("platlibdir", config->platlibdir);
3101 if (config->pycache_prefix != NULL) {
3102 SET_SYS_FROM_WSTR("pycache_prefix", config->pycache_prefix);
3107 COPY_LIST("argv", config->argv);
3108 COPY_LIST("orig_argv", config->orig_argv);
3109 COPY_LIST("warnoptions", config->warnoptions);
3111 SET_SYS("_xoptions", sys_create_xoptions_dict(config));
3134 SET_SYS("dont_write_bytecode", PyBool_FromLong(!config->write_bytecode));