Page 1 of 1

Running a python post processing script

Posted: May 22nd, 2010, 12:52 pm
by catz
Hi,

I have written a simple post-processing script in python which accepts an argument (the filename) and converts the format. I have put it in a folder, and put the path to this folder in the Sab Config>Folders Post-Processing Script area. I have tried to download a file,  but the script isn't being run. Am I doing something wrong?

Thanks

Re: Running a python post processing script

Posted: May 24th, 2010, 1:41 am
by doubledrat
what operating system?


if windows, go to CMD and type the command you are giving to SAB.  Does it run?  If not, it won't run under SAB either.  I suspect you need to associate .py files with the python.exe

Re: Running a python post processing script

Posted: May 24th, 2010, 10:05 am
by catz
It is windows, where can I specify a command to sab. All I can see is a section to put a folder containing scripts (under Config>Folders)

Re: Running a python post processing script

Posted: May 30th, 2010, 11:25 am
by doubledrat
sory for the delay in responding.

in config/categories you can specify a script per category type and you can set a default script in config/switches