This file contains hidden or 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
""" | |
v.2.000 | |
Observer to make sidebearings magnetic to outline modifications. | |
Its aim to be used as a startup script so it can be activated and deactivated whenever you need. | |
Version history: | |
Adrien Bachelart: | |
- v2.000: Updated for RF4: use Subscriber instead of observers and merz instead of mojo.drawingTools | |
ProductionType: |
This file contains hidden or 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
import os | |
import zipfile | |
from pathlib import Path | |
def zipFolder(zipDir, sourcePath, excludePatterns=[]): | |
""" | |
Zips a folder and its contents, without macOS metadata like `.DS_Store` files. | |
*zipDir* is the path to the directory to put the zip file in, |