Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTDAS
CTDAS
Commits
59f070b8
Commit
59f070b8
authored
3 years ago
by
Woude, Auke van der
Browse files
Options
Downloads
Patches
Plain Diff
Added verbosity
parent
0690aad7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
da/tools/tempworkingdir.py
+2
-1
2 additions, 1 deletion
da/tools/tempworkingdir.py
with
2 additions
and
1 deletion
da/tools/tempworkingdir.py
+
2
−
1
View file @
59f070b8
"""
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment