grim/local-pipelines

e1884b499842
Parents 320a97ac5fe4
Children 7359577fb08d
write the script file to the current directory as a dot file
--- a/pipelines/step.py Sat Sep 10 09:47:52 2016 -0500
+++ b/pipelines/step.py Sat Sep 10 18:55:22 2016 -0500
@@ -50,7 +50,11 @@
return "\n".join(self._script)
def script_file(self):
- fd, filename = tempfile.mkstemp(prefix="pipeline-", suffix=".sh")
+ fd, filename = tempfile.mkstemp(
+ prefix=".pipeline-",
+ suffix=".sh",
+ dir=os.getcwd(),
+ )
filename = os.path.realpath(filename)
with os.fdopen(fd, "w") as ofp: