Add Scribus reference to Visual Studio 2019 Python project

126 views Asked by At

I would like to make some Scribus scripts. Normally I use Visual Studio 2019 for other tasks, so I am wondering, is it possible to add somehow Scribus to references? Now I see unresolved import 'scribus' in my scripts and there's not intellisense.

2

There are 2 answers

0
TreSet On BEST ANSWER

As has been pointed out, there is still no official way to debug scribus scripter in Visual Studio or any other program.

However, because I was very annoyed by this, I spent way too much time makin a scribus dummy script that currently includes all the scripter functions.

Hope this helps someone trying to do this in the future.

2
a.l.e On

Yes, you can write your scripts with Visual Studio, but you will need to run them from inside of Scribus:

  • You write your Script in VS
  • Keep an open Scribus instance
  • Save your changes
  • Run your script from the Scribus menus

In the past, when creating scripts that would have little interaction with Scribus documents but lot of calculations, I've created a MockAPI that was replicating a few Scribus commands.

One day we will be able to use Scribus as a library but there is lot of work to be done to get there...