whitespace stripper for runtime.txt

This commit is contained in:
2017-03-14 10:45:59 -04:00
parent 2e37a96984
commit df52fd46e5
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -1,4 +1,8 @@
set +e
# Fix any pending whitespace around runtime.txt.
runtime-fixer runtime.txt
PYTHON_VERSION=$(cat runtime.txt)
# Install Python.
Vendored Executable
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python
import sys
runtime_file = sys.argv[1]
with open(req_file, 'r') as f:
r = f.read().strip()
with open(runtime_file, 'w') as f:
f.write(r)