Here is what I useCode:
import syssys.path.append('/mnt/pi_lib/common')
Better to use something like the following than use a fixed path:
Code:
import osimport syssys.path.append(os.path.dirname(os.path.abspath(__file__)))
By doing the above as long as the all the files are in the same directory it doesn't matter where that directory is.
Statistics: Posted by thagrol — Thu May 09, 2024 9:01 pm