3 ms·
this isn't uniquely pythonic and JS isn't a great counterexample. https://nodejs.org/api/esm.html#importmetamain https://nodejs.org/api/esm.html#importmetamain
by impulsivepuppet 1mo ago
this isn't uniquely pythonic and JS isn't a great counterexample.
https://nodejs.org/api/esm.html#importmetamain https://nodejs.org/api/esm.html#importmetamain
node also has __dirname and __filename from the good old days.
- frollogaston 1mo agoThe JS one is at least a builtin instead of a magic string