Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix sysconfig on Mac/Linux by using the 'nt' layout everywhere.

Thanks to Tristan Zajonc.
  • Loading branch information...
commit 04c45e968afa00958056806eefb3f1a499919005 1 parent ca71b4d
@jdhardy jdhardy authored
View
4 External.LCA_RESTRICTED/Languages/IronPython/27/Lib/sysconfig.py
@@ -151,6 +151,8 @@ def _expand_vars(scheme, vars):
return res
def _get_default_scheme():
+ if sys.platform == 'cli':
+ return 'nt'
if os.name == 'posix':
# the default scheme for posix is posix_prefix
return 'posix_prefix'
@@ -415,7 +417,7 @@ def get_config_vars(*args):
_CONFIG_VARS['platbase'] = _EXEC_PREFIX
_CONFIG_VARS['projectbase'] = _PROJECT_BASE
- if os.name in ('nt', 'os2'):
+ if os.name in ('nt', 'os2') or sys.platform == 'cli':
_init_non_posix(_CONFIG_VARS)
if os.name == 'posix':
_init_posix(_CONFIG_VARS)
Please sign in to comment.
Something went wrong with that request. Please try again.