Scribus Forums

Scribus => Scripts and Plugins => Topic started by: abi on August 19, 2024, 07:01:29 AM

Title: [SOLVED] Unable to Save .sla file using Python Script
Post by: abi on August 19, 2024, 07:01:29 AM
Hi,

I needed a little help as we are new to Scribus environment - we have written a scripts using Python where we have created custom menu items like New, Open, Save etc and then each menu item has a different function - New will read an XML and navigate different paths in a hierarchy and so on.

Using "New" menu- I want to create a new .sla file and store in a custom folder. I am able to create a new folder but unable to save the .sla file

Let me know what code or information you need to help me with the above issues

Will appreciate help for resolving this

Thank you
Title: Re: Unable to Save .sla file using Python Script
Post by: a.l.e on August 20, 2024, 09:00:08 AM
Hi abi

Can you post the relevant lines of code?

I wonder a bit, how this kind of issue can arise...

A wrong path somewhere?
Title: Re: Unable to Save .sla file using Python Script
Post by: abi on August 22, 2024, 06:17:17 AM
Hi,

The issue got resolved - actually we had to save the file name as todays date and the format was giving an error, but its done now. Thanks for getting back

Regards