Login  Register

python functions

Posted by drfg2008 on Aug 27, 2013; 5:38pm
URL: http://spssx-discussion.165.s1.nabble.com/python-functions-tp5721756.html

Hi all,

I have a library of the python functions and would like to use it in my SPSS program. What would be the best way to do it:

1. to import my 'myLibrary' as a library of functions and add the path to sys.path;
2. or to have 'myLibrary.py' as a standalone script with main() and run it from a SPSS (something like subprocess.Popen... - excuse my 'pythonian' expression)

I need a little help here, how to accomplish either 1. and/or 2. please?

Thanks,
Dr. Frank Gaeth