Running a python post processing script

Come up with a useful post-processing script? Share it here!
Post Reply
catz
Newbie
Newbie
Posts: 2
Joined: May 22nd, 2010, 12:47 pm

Running a python post processing script

Post 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
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: Running a python post processing script

Post 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
catz
Newbie
Newbie
Posts: 2
Joined: May 22nd, 2010, 12:47 pm

Re: Running a python post processing script

Post 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)
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: Running a python post processing script

Post 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
Post Reply