Oh! I hadn't thought of sys.argv, which is kind of weird since I've used it a lot in other places. Thanks!
[Later]: When Leo is started from the pip-created launcher sys.argv[0] is that exe. When started from python it's the name of the .py: Started with `leo` sys.argv: ['c:\\apps\\miniconda3\\envs\\leo-dev\\Scripts\\leo'] Started with `python launchLeo.py` sys.argv: ['launchLeo.py'] We could test if sys.argv[0] ends with .py and insert sys.executable if yes, otherwise use as is. -matt -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/8f37bd53-fdbc-4771-8827-e744bd23929d%40googlegroups.com.
