Sep-01-2023, 05:47 AM
I have a few home-made "modules" which do things for me. I keep them all in /home/pedro/myPython/myModules/
If I need one of them, I start my Python program like this:
Not sure if this is good practice, but it works for me!
If I need one of them, I start my Python program like this:
#! /usr/bin/python3 import sys, os, glob sys.path.append('/home/pedro/myPython/myModules/') import score_oralsOMRThen my modules are available. I don't add the path permanently to $PATH because I don't use them very frequently.
Not sure if this is good practice, but it works for me!