I would like to run a Python 3 script using SCRIPT command. However, the problem is that SPSS randomly honors a path defined earlier by CD command. Of course the script is in the same place as the path defined by CD. Code:
*** Setting a path.
cd "C:\Survey Folder\Results".
*** This works.
script "C:\Survey Folder\Results\py3script.py".
*** These almost always don't.
script "py3script.py".
script pythonversion = 3 "py3script.py".
I remember this problem has occured since version 25 but up to 26 it sometimes worked with CD. In version 27 I cannot get desired result.
Is it a bug or documentation simply doesn't mention that a path for a script needs to be given explicitly? If it is a bug - is it fixed in version 28?
------------------------------
Konrad Gałuszko
------------------------------