Skip to content

windows paths in config files striped to their drive letter when parsed #6

@Ryex

Description

@Ryex

the regexp that pulls variable out of config files does not work if there are windows paths, thus preventing proper use of todo.py on windows

strip_re = re.compile('\w+\s([A-Za-z_$="./01]+).*')

as you can see that match group is missing the \ and : characters so windows paths get reduced to the drive letter when they are pulled out.

a fixed line looks like

strip_re = re.compile('\w+\s([A-Za-z_$="./01\\\\:]+).*')

this fix let todo.py work properly for me.

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