CQ-editor
CQ-editor copied to clipboard
How to get running filename
Sorry, I couldn't find a community forum so I'm asking here:
I have a CadQuery script that I'm running in cq-editor. How can I get the filename of my script?
The name of the opened file is displayed in the window title.
Example where I opened "myscript.py":
Also see the CadQuery GitHub page Getting help section. There are links to the Google Group and Discord channel there.
If the question was about getting it in the script itself - there is no intentionally exposed API to do that.