Page 1 of 1

No Userscripts listed in 0.6.8 WHS2011

Posted: August 21st, 2011, 11:49 pm
by weldon
I keep trying to set my User-Scripts folder in the Sabnzbd config, but it doesn't show any scripts available via the main page or the 'Categories' section.


I've installed Sabnzbd numerous times on other computers, and have never had this issue. My setup is like this:


C:\Sickbeard\autoProcessTV\<my-scripts-here>
C:\Users\Administrator\Documents\Scripts\<my-scripts-here> (this is the default location that SAB suggests)

I've tried adding the complete path to my autoProcessTV folder, and the complete & abbrev. path of my 'working-directory' Scripts folder, but each time I check, I do not see any scripts available. The scripts in the folder is the standard sabToSickBeard.py.


Has anyone else encountered this? What might be the issue?

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 22nd, 2011, 2:26 am
by sander
Hi,

I believe with 0.6.8 (or 0.6.7) the user script must be set to "executable". However, in Windows I don't know how to set a file to be executable. (On Linux it's easy: set the x-bit)

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 22nd, 2011, 2:36 am
by weldon
Interesting. I'll look into it tomorrow and post back if I get it working. Thanks!

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 22nd, 2011, 4:04 am
by shypike
In Windows, examine the environment variable PATHEXT.
Only files with extensions listed in PATHEXT will be shown.

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 22nd, 2011, 4:24 am
by sander
Ah, that was the Windows info indeed. Apart from that, is the statement in my previous post correct?

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 22nd, 2011, 4:39 am
by shypike
For Linux/OSX, having the X bit is the only requirement.

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 23rd, 2011, 10:36 pm
by weldon
I came back to this thread after making a wrapper for the .py file:

sabToSickbeardExecutable.bat --

C:\Python27\python.exe C:\Users\Administrator\Documents\SabnzbdScripts\sabToSickBeard.py %1 %2 %3 %4 %5 %6 %7
exit %ERRORLEVEL%

--

I added the environment variable , but It looks like I'll need to restart... since this is the only script I'm planning on running, I'll probably leave this as is for now.

Re: No Userscripts listed in 0.6.8 WHS2011

Posted: August 24th, 2011, 1:12 am
by shypike
PATHEXT is a system environment variable, requiring a system restart on change.
(Well, most of the time.)