Skip to content

Commit 85ef1de

Browse files
committed
use filetools.get_cwd in easyconfig.tools.run
1 parent 9ca0937 commit 85ef1de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

easybuild/tools/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from easybuild.base import fancylogger
6666
from easybuild.tools.build_log import EasyBuildError, dry_run_msg, print_msg, time_str_since
6767
from easybuild.tools.config import build_option
68+
from easybuild.tools.filetools import get_cwd
6869
from easybuild.tools.hooks import RUN_SHELL_CMD, load_hooks, run_hook
6970
from easybuild.tools.utilities import trace_msg
7071

@@ -315,7 +316,7 @@ def to_cmd_str(cmd):
315316
qa_wait_patterns = []
316317

317318
if work_dir is None:
318-
work_dir = os.getcwd()
319+
work_dir = get_cwd()
319320

320321
cmd_str = to_cmd_str(cmd)
321322

0 commit comments

Comments
 (0)