Add Workspace.write_python_script().

This commit is contained in:
Eric Snow 2018-04-10 22:41:07 +00:00
parent 6cc5cca1fb
commit f3bfa1cff7

View file

@ -45,6 +45,9 @@ class Workspace(object):
def write_script(self, *path, **kwargs):
return self._write_script(path, **kwargs)
def write_python_script(self, *path, **kwargs):
return self._write_script(path, executable=sys.executable, **kwargs)
def lockfile(self, filename, timeout=1.0):
_timeout = timeout
filename = self.resolve(filename)