[scribus] path question for a script to find itself

Gregory Pittman gpittman at iglou.com
Wed Oct 18 13:09:24 UTC 2017


On 10/18/2017 05:12 AM, Juraj Fedel wrote:
> 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]
> 

Which would suggest you need to 'import sys' also.

Greg




More information about the scribus mailing list