diff --git a/support/__init__.py b/support/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/support/mytyping.py b/support/mytyping.py new file mode 100644 index 0000000000000000000000000000000000000000..5bf35520b41f6bc847405822a881ec5989a2b8d9 --- /dev/null +++ b/support/mytyping.py @@ -0,0 +1,4 @@ +try: + from typing import NoReturn +except (ImportError, NameError): + NoReturn = None diff --git a/transfer.py b/transfer.py index 6f228210d8ff1d05b4c58256048306c429f7635a..7074140dac95db9525c2271886e5e7874f7a4393 100644 --- a/transfer.py +++ b/transfer.py @@ -36,6 +36,8 @@ else: shutil.rmtree(os.path.join(disk, 'src'), True) shutil.rmtree(os.path.join(disk, 'boot_out.txt'), True) shutil.rmtree(os.path.join('src', '__pycache__'), True) + shutil.rmtree(os.path.join('support', '__pycache__'), True) shutil.copytree('src', os.path.join(disk, 'src'), dirs_exist_ok=True) + shutil.copytree('support', os.path.join(disk, 'support'), dirs_exist_ok=True) shutil.copy('code.py', os.path.join(disk, 'code.py')) print("Done! Switch back to the Serial Monitor!")