Commit 544dc767 by Stephen Fromm

Create temp file in directory where ssh key lives

parent b2e94e53
...@@ -118,7 +118,7 @@ def readkeys(filename): ...@@ -118,7 +118,7 @@ def readkeys(filename):
def writekeys(module, filename, keys): def writekeys(module, filename, keys):
fd, tmp_path = tempfile.mkstemp() fd, tmp_path = tempfile.mkstemp('', 'tmp', os.path.dirname(filename))
f = open(tmp_path,"w") f = open(tmp_path,"w")
try: try:
f.writelines( (key + "\n" for key in keys) ) f.writelines( (key + "\n" for key in keys) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment