DenoDDeno
Powered by
QuantumQ
Denoβ€’3y agoβ€’
10 replies
Quantum

How to get the path to the compiled binary?

import.meta.url
import.meta.url
and
Deno.mainModule
Deno.mainModule
are used to get the current script, but after a binary is created, those get frozen to the script at the time that the compile was performed. Moving the binary somewhere else gives you the same (now wrong) result when
import.meta.url
import.meta.url
or
Deno.mainModule
Deno.mainModule
get called.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to get the path of compiled executable?
Nanashi.NNanashi. / help
3y ago
Bunle OAK static assets to the compiled binary
leftdevLleftdev / help
3y ago
Root path when compiled
RogueManRRogueMan / help
16mo ago
Compiled app binary.rs main thread panicked
NeubekiNNeubeki / help
2y ago