Skip to content
Snippets Groups Projects
Commit 59f070b8 authored by Woude, Auke van der's avatar Woude, Auke van der
Browse files

Added verbosity

parent 0690aad7
Branches
No related tags found
No related merge requests found
"""Set a temporary working directory
This can be useful for executing code in another directory
Created by Auke van der Woude"""
import logging
import os
class TempWorkingDirectory():
......@@ -19,6 +19,7 @@ class TempWorkingDirectory():
self.workingdir = newworkingdir
def __enter__(self):
logging.debug('Temporarily switching to wd {}'.format(self.workingdir))
self.current_workingdir = os.getcwd()
os.chdir(self.workingdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment