Skip to content

Instantly share code, notes, and snippets.

@t-eckert
Created May 11, 2019 05:38
Show Gist options
  • Save t-eckert/66ca8f83f35aff64fbe37326ffdb440f to your computer and use it in GitHub Desktop.
Save t-eckert/66ca8f83f35aff64fbe37326ffdb440f to your computer and use it in GitHub Desktop.
This script will copy `code.py` to the CIRCUITPY volume on Mac
# This will only work on MacOS
CIRCUITPY_PWD = "/Volumes/CIRCUITPY"
ORIGIN = "code.py"
TARGET = CIRCUITPY_PWD + "/code.py"
with open(ORIGIN, "r") as origin_file:
origin_code = origin_file.read()
with open(TARGET, "w") as target_file:
target_file.write(origin_code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment