Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pierre-Samuel Le Stang
poezio
Commits
79a4cc89
Commit
79a4cc89
authored
Jul 21, 2018
by
Link Mauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: Cast Path to str() before passing it to copy2.
parent
c1bc46cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
poezio/config.py
poezio/config.py
+2
-2
No files found.
poezio/config.py
View file @
79a4cc89
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment