User Tools

Site Tools


python_on_ibm_i

This is an old revision of the document!


Python on IBM i

Running Python

By default the python lib scripts are placed in /python27. This can be changed to anything you want. I want my to be at /usr/local/lib/python27 so that I don't spam the root folder with folders and files.

But if you changed the home folder of python you need to set the environment variables so that the program will find them.

  ADDENVVAR ENVVAR(PYTHONHOME) VALUE('/QOpenSys/usr/local/lib/python27')

That should suffice though you can also set the lib path like this:

  ADDENVVAR ENVVAR(PYTHONLIB) VALUE('/QOpenSys/usr/local/lib/python27/lib')

I use the QOpenSys file system to store the files because it provides more compatibility with the more Unix like world and just add a symlink from /QOpenSys/usr/local to /usr/local .

Resources

python_on_ibm_i.1543568511.txt.gz · Last modified: 2018/11/30 09:01 by mihael