Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using os.path.join() is not good for zipfile paths #247

Closed
@DavePlater

Description

@DavePlater

self._fw_xml_file = os.path.join(_FW_DIR_NAME, self._fw_xml_filename)

(Trying to use the library on windows)
Using os.join() results in funky paths like 'radio_fw\\\\XB3-24A/XB3-24A_2003-th.xml' which cannot be found and throw exceptions.
For looking at zipfile contents, i think you need to force the slash type

I changed to self._fw_xml_file = _FW_DIR_NAME + "/" + self._fw_xml_filename and the code executed fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions