Skip to content

_os.rename() fails under Windows #104

@jdghub

Description

@jdghub

In feeds.py the updating of the config and database files fails under Windows because the rename of the temporary updated files to the originals fail, because the original files still exist. I assume this rename succeeds under *nix, but Windows requires a preceding _os.remove() of the existing file, which resolved the problem for me, e.g.,
_os.remove(dst_config_file)
before
_os.rename(tmpfile, dst_config_file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions