Skip to content

Load fails with nested folder structures #7

Description

@Nisto

I noticed that recursive loads do not work, since base_path is not updated.

Imagine you have the following setup:

A.MINIPSF at C:\ with tag _lib=sub\B.psflib
B.PSFLIB at C:\sub\ with tag _lib=sub\C.psflib
C.PSFLIB at C:\sub\sub\

Then it would try to load sub\C.PSFLIB from C:\ instead of C:\sub\:

Opened file: A.minipsf
From base path: C:\
Tag detected, attempting to read it.
Found _lib: sub\B.psflib
 Opened file: sub\B.psflib
 From base path: C:\
 Tag detected, attempting to read it.
 Found _lib: sub\C.psflib
  Error opening file: sub\C.psflib
  From base path: C:\
Done.

I can try to fix this myself, but I usually fail at writing clean C code. :(

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