Page 1 of 1

0.6.6 doesn't make scripts available.

Posted: July 27th, 2011, 6:59 pm
by kulprit
Running 0.6.5 and had scripts folder assigned in the folder section of the config and all my scripts are available from the drop down menu in downloads and in categories.

Updated to 0.6.6 (and RC1 previously) and the drop down menu is now empty. A roll back to 0.6.5 brings the ability to choose the scripts back again.

Any more info required please let me know.

Re: 0.6.6 doesn't make scripts available.

Posted: July 28th, 2011, 1:52 am
by shypike
You're on Windows, I assume?
SABnzbd 0.6.6 will only show 'executable" files.
The requirement is that the script's extension is listed in your system's PATHEXT environment variable.
If that doesn't contain the extension of your script(s), then SABnzbd won't show it.
There is a little snag, in that Windows will still execute it when there's a assoc/ftype pair defined in the registry.
Normally however, real executable content should have its extension listed in PATHEXT.
So, you work-around is to add the extension to the global environment variable PATHEXT (and restart SABnzbd).

This should have been listed in the release notes,
sorry about that.

Re: 0.6.6 doesn't make scripts available.

Posted: July 28th, 2011, 6:33 am
by kulprit
Thanks shypike. Yeah my scripts are python and a google has shown me how to add .py and .pyw to my pathext. Will post back once I have a chance to test and see if it works.

Thanks again

Re: 0.6.6 doesn't make scripts available.

Posted: July 28th, 2011, 7:53 am
by shypike
It looks like Python doesn't always address this consistently.
On my main system, the addition to PATHEXT went automatic, on the other system it did not.
I didn't realize that this issue exists until you told me.
(The issue being that an extension not listed in PATHEXT, can still be executable because of its ftype/assoc registration).

Re: 0.6.6 doesn't make scripts available.

Posted: July 28th, 2011, 8:20 am
by kulprit
All good. After adding .py and .pyw to my PATHEXT they all show up again.

Cheers