3 ms·
Yeah, I think you're right - didn't know about __file__. (To clarify, using "$0" with bash is just standard method to invoke the same script with an interprete
by yongjik 5y ago
Yeah, I think you're right - didn't know about __file__.
(To clarify, using "$0" with bash is just standard method to invoke the same script with an interpreter - sys.argv[0] will work with or without bash exec part.)