We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88a856 commit a058372Copy full SHA for a058372
package.py
@@ -124,11 +124,12 @@ def tempdir(dir=None):
124
"""Creates a temporary directory and then deletes it afterwards."""
125
prefix = "terraform-aws-lambda-"
126
path = tempfile.mkdtemp(prefix=prefix, dir=dir)
127
- cmd_log.info("mktemp -d %sXXXXXXXX # %s", prefix, shlex.quote(path))
+ abs_path = os.path.abspath(path)
128
+ cmd_log.info("mktemp -d %sXXXXXXXX # %s", prefix, shlex.quote(abs_path))
129
try:
- yield path
130
+ yield abs_path
131
finally:
- shutil.rmtree(path)
132
+ shutil.rmtree(abs_path)
133
134
135
def list_files(top_path, log=None):
0 commit comments