summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-21 14:27:29 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-21 14:27:29 +0200
commit79a4cc8937d318f55d87549a2d2e020cbb5f5920 (patch)
tree36dd5e13e5e90bbaef2bd33f4d6e417f53251bf5
parentc1bc46cb2cd5f0058cbedcc8e45fe890edb9dc1d (diff)
downloadpoezio-79a4cc8937d318f55d87549a2d2e020cbb5f5920.tar.gz
poezio-79a4cc8937d318f55d87549a2d2e020cbb5f5920.tar.bz2
poezio-79a4cc8937d318f55d87549a2d2e020cbb5f5920.tar.xz
poezio-79a4cc8937d318f55d87549a2d2e020cbb5f5920.zip
config: Cast Path to str() before passing it to copy2.
-rw-r--r--poezio/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/config.py b/poezio/config.py
index e82aa190..5153b0d0 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -560,9 +560,9 @@ def run_cmdline_args():
default = Path(__file__).parent / '..' / 'data' / 'default_config.cfg'
other = Path(pkg_resources.resource_filename('poezio', 'default_config.cfg'))
if default.is_file():
- copy2(default, options.filename)
+ copy2(str(default), str(options.filename))
elif other.is_file():
- copy2(other, options.filename)
+ copy2(str(other), str(options.filename))
# Inside the nixstore and possibly other distributions, the reference
# file is readonly, so is the copy.