[scribus] path question for a script to find itself

Juraj Fedel wtxnh-scribus at yahoo.com.au
Wed Oct 18 09:12:31 UTC 2017


On Fri, Oct 13, 2017 at 02:47:13PM +0100, ZASKE Martin wrote:
> Normally it would work with something like this:
> 
> myicon = os.path.join(os.path.abspath('.'),'mybeautifulicon.ico')

myicon = os.path.join(sys.path[0],'mybeautifulicon.ico')

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

Bye
Juraj Fedel



More information about the scribus mailing list