dbisu / pico-ducky

Create a USB Rubber Ducky like device using a Raspberry PI Pico
GNU General Public License v2.0
2.42k stars 440 forks source link

Error, could not open file. (IMPORT command in payload) #283

Open g0lder opened 1 month ago

g0lder commented 1 month ago

Whenever I use the import command inside of the payload, it says, "Error, could not open file (x)"

simply create a payload, and try to import a module. I tried putting the module I needed in different directories, and it wouldn't work :( (I was attempting to get adafruits_hid.mouse)

I expected to be able to import the file and use the module commands

(P.S. I am trying to get the mouse to move, I got the buttons to click by defining them in the duckyinpython.py file)

Crossshield45 commented 1 month ago

Put those files in the lib folder. The code doesn't use other folders as far as I know.