from your mac
Code: Select all
scp /path/to/py/file pi@raspberrypi:~
Replace raspberrypi with the ip address of the Pi if using the hostname doesn't work.
or from the pi
Code: Select all
scp macuser@macipaddress:/path/to/py/file ~
replace macuser and macipaddress with your mac user and mac's ip address.