meshcode 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- meshcode/__init__.py +2 -0
- meshcode/cli.py +30 -0
- meshcode/comms_v4.py +1208 -0
- meshcode-1.0.0.dist-info/METADATA +277 -0
- meshcode-1.0.0.dist-info/RECORD +8 -0
- meshcode-1.0.0.dist-info/WHEEL +5 -0
- meshcode-1.0.0.dist-info/entry_points.txt +2 -0
- meshcode-1.0.0.dist-info/top_level.txt +1 -0
meshcode/__init__.py
ADDED
meshcode/cli.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""MeshCode CLI entry point for pip install."""
|
|
3
|
+
import sys
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main():
|
|
8
|
+
"""Entry point that delegates to comms_v4.py within the package."""
|
|
9
|
+
# Find comms_v4.py — first in package dir, then in repo root
|
|
10
|
+
pkg_dir = os.path.dirname(os.path.abspath(__file__))
|
|
11
|
+
repo_root = os.path.dirname(pkg_dir)
|
|
12
|
+
|
|
13
|
+
for candidate in [
|
|
14
|
+
os.path.join(pkg_dir, "comms_v4.py"),
|
|
15
|
+
os.path.join(repo_root, "comms_v4.py"),
|
|
16
|
+
]:
|
|
17
|
+
if os.path.exists(candidate):
|
|
18
|
+
sys.argv[0] = candidate
|
|
19
|
+
# Set __name__ and __file__ for the script
|
|
20
|
+
globs = {"__name__": "__main__", "__file__": candidate}
|
|
21
|
+
with open(candidate) as f:
|
|
22
|
+
exec(compile(f.read(), candidate, "exec"), globs)
|
|
23
|
+
return
|
|
24
|
+
|
|
25
|
+
print("[ERROR] comms_v4.py not found. Reinstall: pip install meshcode")
|
|
26
|
+
sys.exit(1)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if __name__ == "__main__":
|
|
30
|
+
main()
|