Add documentation for ifcpatch.

This commit is contained in:
Dion Moult
2021-02-22 22:04:23 +11:00
parent 441d842f67
commit d874a0089d
17 changed files with 70 additions and 0 deletions
-23
View File
@@ -1,23 +0,0 @@
#!/usr/bin/env python3
import os
import subprocess
# add hidden imports in recipes here
HIDDEN_IMPORTS = [
"ifcopenshell.util.selector",
"ifcopenshell.util.element",
"ifcopenshell.util.schema",
"toposort",
]
def main():
hiddenimport_args = " ".join('--hiddenimport "{}"'.format(imp) for imp in HIDDEN_IMPORTS)
cmd = 'pyinstaller ./__init__.py --onefile --clean --add-data ".{}ifcpatch" {}'.format(
os.pathsep, hiddenimport_args
)
subprocess.check_output(cmd, shell=True)
if __name__ == "__main__":
main()