Message 1 of 3
Print the name of the current script in the script editor

Not applicable
11-23-2017
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the Maya Script Editor is there a way to find the name of the script that's currently selected?
Sounds daft, but if there a lot of tabs open (all called Python) it can get confusing 😉
Normally
import os
print sys.argv[0]
would print the name of the script. In the cayse of Maya it just prints
C:\Program Files\Autodesk\Maya2017\bin\maya.exe