diff options
Diffstat (limited to 'build/build.py')
-rwxr-xr-x | build/build.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/build/build.py b/build/build.py index 8b398cf..dd88156 100755 --- a/build/build.py +++ b/build/build.py @@ -22,16 +22,6 @@ import sys import tempfile -@contextmanager -def _chdir(path): - cwd = os.getcwd() - os.chdir(path) - try: - yield - finally: - os.chdir(cwd) - - def _make_tmp_dir(**kwargs): path = tempfile.mkdtemp(**kwargs) logging.info('Created temporary directory: %s', path) @@ -84,9 +74,6 @@ class BuildDir: def _make_build_dir(): return _make_tmp_dir(prefix='build_') - def go(self): - return _chdir(self.path) - def __enter__(self): return self |