dennisvang / tufup

Automated updates for stand-alone Python applications.
MIT License
71 stars 1 forks source link

Consistent path separators in config file #147

Closed dennisvang closed 3 weeks ago

dennisvang commented 4 weeks ago

Related to #50

A config file created on windows will get relative paths with \\ path separator.

This may lead to strange path-related issues if the config is loaded on linux, for example:

>>> pathlib.PurePosixPath('foo\\bar').name
'foo\\bar'
>>> pathlib.PureWindowsPath('foo\\bar').name
'bar'

Should use / in saved config paths regardless of platform.

An apparent workaround would be to fix the config file manually, but the change will be reverted automatically when the file is updated by tufup.