diff options
author | Artem Bityutskiy <dedekind1@gmail.com> | 2022-01-26 11:37:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 11:37:13 +0200 |
commit | 72c616c8451ca0c2fc0077e1996c0e53630430f7 (patch) | |
tree | d5c986e4e4c641b0176620d5ef37f358e3a9a5d2 /bmaptools/BmapCopy.py | |
parent | a446557be0fb609242240a447437ec3b31cc1011 (diff) | |
parent | 06fa51d0270f84d9553c044bd7391f01459a70e8 (diff) |
Merge pull request #96 from zxcv1884/master
Fix path parameter passing error of set_psplash_pipe function
Diffstat (limited to 'bmaptools/BmapCopy.py')
-rw-r--r-- | bmaptools/BmapCopy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bmaptools/BmapCopy.py b/bmaptools/BmapCopy.py index c6a2603..dba24a5 100644 --- a/bmaptools/BmapCopy.py +++ b/bmaptools/BmapCopy.py @@ -228,11 +228,11 @@ class BmapCopy(object): a best effort. """ - if os.path.exists(pipe) and stat.S_ISFIFO(os.stat(pipe).st_mode): - self._psplash_pipe = pipe + if os.path.exists(path) and stat.S_ISFIFO(os.stat(path).st_mode): + self._psplash_pipe = path else: _log.warning("'%s' is not a pipe, so psplash progress will not be " - "updated" % pipe) + "updated" % path) def set_progress_indicator(self, file_obj, format_string): """ |