• Victor Stinner's avatar
    bpo-32030: Rewrite _PyMainInterpreterConfig (#4854) · b5fd9ad0
    Victor Stinner yazdı
    _PyMainInterpreterConfig now contains Python objects, whereas
    _PyCoreConfig contains wchar_t* strings.
    
    Core config:
    
    * Rename _PyMainInterpreterConfig_ReadEnv() to _PyCoreConfig_ReadEnv()
    * Move 3 strings from _PyMainInterpreterConfig to _PyCoreConfig:
      module_search_path_env, home, program_name.
    * Add _PyCoreConfig_Clear()
    * _PyPathConfig_Calculate() now takes core config rather than main
      config
    * _PyMainInterpreterConfig_Read() now requires also a core config
    
    Main config:
    
    * Add _PyMainInterpreterConfig.module_search_path: sys.path list
    * Add _PyMainInterpreterConfig.argv: sys.argv list
    * _PyMainInterpreterConfig_Read() now computes module_search_path
    b5fd9ad0
pylifecycle.h 6.26 KB