Commit 205a0969 authored by Tarek Ziadé's avatar Tarek Ziadé

simplified the fallback case

parent 5ca1f667
......@@ -19,11 +19,10 @@ ALREADY_TESTED = False
def _get_source_filename():
srcdir = sysconfig.get_config_var('srcdir')
xxmodule = os.path.join(srcdir, 'Modules', 'xxmodule.c')
if not os.path.exists(xxmodule):
if srcdir is None:
# local fallback
xxmodule = os.path.join(os.path.dirname(__file__), 'xxmodule.c')
return xxmodule
return os.path.join(os.path.dirname(__file__), 'xxmodule.c')
return os.path.join(srcdir, 'Modules', 'xxmodule.c')
class BuildExtTestCase(support.TempdirManager,
support.LoggingSilencer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment