Hi,
Is there a way to use the `SPSSINC PROGRAM` but load the Python code from an external .py file instead of specifying the Python code inside the .sps file?
My current workflow for Python scripting in SPSS is the following
- Write the python code in an external IDE (Visual studio code) because it's much more convenient
- Write unit tests for my python script to make sure it works as expected
- Copy paste the python code inside the BEGIN/END PROGRAM Python in a .sps file
This is very time consuming and does not allow reusability of my Python scripts in several .sps files. So I wonder if there is a way to have all my Python scripts in .py source files and tell a SPSS script to load the functions from those files.
A simple example would be this reg exp function described
Using regular expressions in SPSS where I'd like the SearchZip to live in its own .py file
I looked into
Creating and editing extension bundles and while that would probably work, it seems like an overkill just for reusing some simple py functions
thanks in advance
Jan
------------------------------
Jan
------------------------------
#SPSSStatistics