Skip to content

Way to get current .pkl filename #418

Closed Answered by HT154
yyuu asked this question in Q&A
Apr 11, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

You can get the URI of the current module using pkl:reflect. Here's an example in the stdlib:

projectFileUri: String = reflect.Module(module).uri

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by bioball
Comment options

You must be logged in to vote
1 reply
@holzensp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants