cancel
Showing results for 
Search instead for 
Did you mean: 

Standard python packages in the Script snap

igormicev
Contributor

Hi guys,

Can anyone supply a list of the available python packages for usage via the Script snap?

Thanks in advance -
Igor

3 REPLIES 3

ptaylor
Employee
Employee

The Script snap uses the Jython 2.7.2 engine. You can search online to find out which packages are provided with the engine, but you can also import other packages.

igormicev
Contributor

@ptaylor thanks for the reply!
Did you mean of possibility to import other packages without having RPE set up? Can you please in that case share an example (or simple pipeline)?

Yes, if it’s Python 2.x compatible and doesn’t do anything too weird.

It does require some special configuration on the plex node though. You create a file called .jython in the home directory of the user that the jcc runs as. In that file you would define

python.path=/the/path/to/the/root/of/your/python/library/collection

for example, on my system it would be

python.path=/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7

Then in your Script source, you can just import any of the packages that are present under that path.