Support loading files relative to project root directory
tunniclm opened this issue · comments
Mike Tunnicliffe commented
Commonly we store configuration files in the project root (or a subdirectory of it like "config").
It is desirable to be able to specify:
manager.load(file: "config.json", relativeFrom: .project)
Additionally, it would be good to have this continue to work if the executable is not located in .build/debug
or .build/release
, for example, in some other part of the project tree. Therefore the project root should be where the Package.swift
resides.
Mike Tunnicliffe commented
Youming Lin commented
Closed by PR #16.