Hi James,
LapinFou has alot of good info for running Pyton script on a Synology NAS -
http://forums.sabnzbd.org/viewtopic.php?t=10595
A couple points you may want to check.
1. - Off course if you are using an another source other than SynoCommunity package, don't forget to update the first line: #!/usr/local/python/bin/python -OO
2. - Create into the specified script folder a YourScript.py file (don't forget to setup right access to 755)to make it exacutable chmod 755 filename.ext. /!\Warning/!\ this file must be Unix format ! So it is better to create it with vi under a SSH connection or take a look below.
NB: If you want to create the file from a Window platform, you may use the great editor Notepad++. Don't forget to save the file in Unix format (Edit -> EOL Conversion -> Unix). - this could cause many problems if not done.
PS: The script may also be executed as a command line through a Telnet session.
For example: /volume1/download/SABnzbdScripts/YourScript.py "folder path which must be fixed"
If you are executing the command from the folder where is stored the script, the command is
./YourScript.py "folder path which must be fixed"
PM if you need to.
J03