Ask Your Question

# Revision history [back]

This ended up working for me, both in command line, and notebook:

cmd_folder = os.path.dirname(os.path.abspath('/home/william/pyserial-2.5/serial'))
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
import serial


I found the solution here.