Skip to content

CfgPath: Add support for ${PROGRAM_DIR}.

Nick Mathewson requested to merge nickm/arti:progdir into main

CfgPath: Add support for ${PROGRAM_DIR}.

${PROGRAM_DIR} expands to the equivalent of std::env::current_exe().parent(), with appropriate unwrapping and conversions.

It is expected to be useful for finding the locations of pluggable transports in some kinds of bundles.

Closes #586 (closed).


The original version of this patch used $0, but that's a bad idea for a zillion reasons.

Assigning review to @Diziet since he knows about Shellexpand stuff.

cc @richard so they can confirm that this is about what they wanted.

Merge request reports

Loading