Skip to content

Commit

Permalink
DOC: fix default value of input argument cwd of the run() function
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Nov 4, 2020
1 parent 856a9de commit 0356c7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pymialsrtk/interfaces/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import subprocess


def run(self, command, env=None, cwd=os.getcwd()):
def run(command, env=None, cwd=None):
"""Function calls by each MIALSRTK interface.
It runs the command specified as input via ``subprocess.run()``.
Expand All @@ -33,6 +33,9 @@ def run(self, command, env=None, cwd=os.getcwd()):

merged_env = os.environ

if cwd is None:
cwd = os.getcwd()

if env is not None:
merged_env.update(env)

Expand Down

0 comments on commit 0356c7e

Please sign in to comment.