[New-bugs-announce] [issue15322] sysconfig.get_config_var('srcdir') returns unexpected value

Chris Jerdonek report at bugs.python.org
Wed Jul 11 04:08:28 CEST 2012


New submission from Chris Jerdonek <chris.jerdonek at gmail.com>:

sysconfig.get_config_var('srcdir') seems to return the current working directory rather than a directory related to the source directory.

For example (starting from the repository root)--

$ mkdir foo
$ cd foo
$ ../python.exe 
Python 3.3.0b1 (default:5d43154d68a8, Jul  8 2012, 18:23:20) 
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
>>> import sysconfig
>>> sysconfig.get_config_vars('srcdir')
['/.../cpython/foo']
>>> import sys
>>> sys.executable
'/.../cpython/foo/../python.exe'

This may be the cause or related to issue 15300: "test directory doubly-nested running tests with -j/--multiprocess".

----------
messages: 165219
nosy: cjerdonek
priority: normal
severity: normal
status: open
title: sysconfig.get_config_var('srcdir') returns unexpected value
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15322>
_______________________________________


More information about the New-bugs-announce mailing list