Created
May 11, 2019 05:38
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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