aoloe / scribus-script-repository

Repository with python scripts from the Scribus community
36 stars 11 forks source link

document how to get the script's path #29

Closed aoloe closed 4 years ago

aoloe commented 6 years ago
myicon = os.path.join(sys.path[0],'mybeautifulicon.ico')

Scribus store path to currerntly running script in sys.path[0]

aoloe commented 4 years ago

now, the script path is in __FILE__. thanks, jean!