Skip to content

Instantly share code, notes, and snippets.

@t-eckert

t-eckert/load.py

Created May 11, 2019
Embed
What would you like to do?
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