I'm writing an auto-testing script right now. My build environment is Linux with Python 3.
My program stuck when it runs to the command:
os.system('cp '+ file_name + ' '+ usb_port)
where it reports:
cp: cannot create regular file `/dev/usb/lp0': No such file or directory
I have manually checked that two file exist. (well i should say that the usb port is indeed connected and working properly by using path.exist command) I've separated this troubling command to another file,and it works fine without any error report.
my program involves following library:
import serial
import time
import os
import threading
import queue
import multiprocessing as mp
from datetime import datetime
from configparser import SafeConfigParser