Skip to content

get_fields from template string is impossible with /  #960

Open
@francoisgfx

Description

Hello,

Getting fields from a template string is impossible if it contains some "/".

For example if you look at the config here : https://github.com/ue4plugins/tk-config-unrealbasic/blob/0686e53d9d26027507fc45f03d6e7935a9512a4f/env/includes/unreal/templates.yml#L104

The reason is because get_fields, calls TemplatePathParser, which does a os.path.normpath().

so on Windows a string like /Game/Level/ is going to be converted to \\Game\\Level\\

Is there another way to extract fields from a string ?

Cheers

F.

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