#!/usr/bin/env python import sys runtime_file = sys.argv[1] with open(runtime_file, 'r') as f: r = f.read().strip() with open(runtime_file, 'w') as f: f.write(r)