[V3] Stop tmp dir showing up (#1895)

This commit is contained in:
Toby Harradine 2018-07-12 02:17:54 +02:00 committed by Kowlin
parent 5c514fd663
commit 50f6dcef2f

View File

@ -34,7 +34,7 @@ def check_compiler_available():
tfile.write(b"int main(int argc, char** argv) {return 0;}") tfile.write(b"int main(int argc, char** argv) {return 0;}")
tfile.seek(0) tfile.seek(0)
try: try:
m.compile([tfile.name]) m.compile([tfile.name], output_dir=tdir)
except (CCompilerError, DistutilsPlatformError): except (CCompilerError, DistutilsPlatformError):
return False return False
return True return True