difference between direct execute and via console

Previous topic - Next topic

skhullar

Hi

Stuck with some trivial issues. Sorry if this sounds ridiculous.
Why does a standard sample script (c:\Program Files\Scribus 1.6.1\share\samples\wordcount.py), which executes correctly, gives multiple indentation error when executed from console?

thanks
SUnil

a.l.e

#1
good morning

the specific script works here, when i launch scribus from the console with that script.

enabling the hidden characters does not show any "stupid" indent errors, either.

of course, you can't run that script from the console, first you need to start scribus (even if somebody had the briliant idea to put "#!/usr/bin/env python" at the start; it will run but just tell you that you need to start the scribus from inside scribus).

skhullar

Thanks ALE

The objective was to learn how to debug a script.
Hence was trying to use console as a tool.
Is that the correct method? Or what is the best practice?

Sunil

a.l.e

basically, there are no best practices.

the problem being, that at some time you need to run the script from inside of scribus and i'm not sure how you can have a good debugging experience in this type of setting (but i'll try to shortly research that too)

one of these evenings, i will try to write a summary of the different way you can use with different types of scripts.

a.l.e