Fix os/sys typo and use an absolute path on *nix too

This commit is contained in:
Joe Rickerby
2017-04-10 22:41:08 +01:00
parent 7a2e951f48
commit 89c8735719
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import sys
# here we assert that the Python version as written to version.txt in the CIBW_BEFORE_BUILD step
# is the same one as is currently running.
if sys.argv[-1] != '--name':
version_file = 'c:\\pythonversion.txt' if os.platform == 'win32' else 'pythonversion.txt'
version_file = 'c:\\pythonversion.txt' if sys.platform == 'win32' else '/tmp/pythonversion.txt'
with open(version_file) as f:
stored_version = f.read()
print('stored_version', stored_version)