Skip to content

BUG: register path issues with binary and unicode strings #379

Description

@hannesdelbeke

while adding path support to pyblish, i noticed some paths change in unpredictable ways
original thread #377

starting a new issue here to discuss this.

u"c:\some\special\södär\testpath".encode('utf-8') -> binary

b'c:\some\special\s\xc3\xb6d\xc3\xa4r\testpath' becomes
b'c:\\some\\special\\s\xc3\xb6d\xc3\xa4r\testpath' when added to registered paths using pyblish.plugin.register_plugin_path(path)
notice the \ before testpath is a single one, but all other folder \ are 2 now

b'c:\bytes\are\cool' becomes
b'c:\\bytes\\are\\cool'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions