Commit 9fee1912 authored by Adam Blank's avatar Adam Blank
Browse files

Update transfer.py

parent 19b54cba
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -59,7 +59,6 @@ trinkey.flush()
print("Connected to Trinkey! Transfering files...")
shutil.rmtree(os.path.join('src', '__pycache__'), True)
shutil.rmtree(os.path.join(disk, 'src'), True)
shutil.rmtree(os.path.join('support', '__pycache__'), True)
shutil.rmtree(os.path.join(disk, '__pycache__'), True)
......@@ -69,7 +68,9 @@ for x in os.listdir(disk):
except (PermissionError, FileNotFoundError, OSError):
pass
shutil.rmtree(os.path.join(disk, 'src'), True)
shutil.copytree('src', os.path.join(disk, 'src'), dirs_exist_ok=True)
shutil.rmtree(os.path.join(disk, 'support'), True)
shutil.copytree('support', os.path.join(disk, 'support'), dirs_exist_ok=True)
shutil.copy('code.py', os.path.join(disk, 'code.py'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment