CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

How to get running filename

Open threed-factory-store opened this issue 3 years ago • 2 comments

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?

threed-factory-store avatar Dec 07 '21 00:12 threed-factory-store

The name of the opened file is displayed in the window title.

Example where I opened "myscript.py": image

Also see the CadQuery GitHub page Getting help section. There are links to the Google Group and Discord channel there.

lorenzncode avatar Dec 07 '21 23:12 lorenzncode

If the question was about getting it in the script itself - there is no intentionally exposed API to do that.

adam-urbanczyk avatar Dec 08 '21 07:12 adam-urbanczyk