Add portable Mentor schematic batch exporter
This commit is contained in:
commit
40fbb1893a
26 files changed
+3622
No files matched your search
@@ -0,0 +1,16 @@
|
||||
"""Portable script bootstrap; always resolves dependencies from its own folder."""
|
||||
from pathlib import Path
|
||||
import os
|
||||
import sys
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
sys.path.insert(0, str(ROOT))
|
||||
_dll_handles = []
|
||||
for folder in (ROOT / "runtime/Lib/site-packages/pywin32_system32",
|
||||
ROOT / "runtime/Lib/site-packages/win32"):
|
||||
if folder.is_dir() and hasattr(os, "add_dll_directory"):
|
||||
_dll_handles.append(os.add_dll_directory(str(folder)))
|
||||
|
||||
if __name__ == "__main__":
|
||||
from mentorexport.cli import main
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user