~dpb/latch-test/playground

« back to all changes in this revision

Viewing changes to latch.py

  • Committer: David Britton
  • Date: 2015-02-24 18:50:19 UTC
  • Revision ID: dpb@canonical.com-20150224185019-ml4fbqla4xz59pn2
put tmpdir in current working directory, to take advantage of shared repositories. [trivial]

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
@contextmanager
50
50
def temporary_directory():
51
 
    name = tempfile.mkdtemp(prefix="latch")
 
51
    name = tempfile.mkdtemp(prefix="latch", dir=os.getcwd())
52
52
    try:
53
53
        yield name
54
54
    finally: