(ns)
| 106 | |
| 107 | |
| 108 | def get_tcltk_lib(ns): |
| 109 | if not ns.include_tcltk: |
| 110 | return |
| 111 | |
| 112 | tcl_lib = os.getenv("TCL_LIBRARY") |
| 113 | if not tcl_lib or not os.path.isdir(tcl_lib): |
| 114 | try: |
| 115 | with open(ns.build / "TCL_LIBRARY.env", "r", encoding="utf-8-sig") as f: |
| 116 | tcl_lib = f.read().strip() |
| 117 | except FileNotFoundError: |
| 118 | pass |
| 119 | if not tcl_lib or not os.path.isdir(tcl_lib): |
| 120 | log_warning("Failed to find TCL_LIBRARY") |
| 121 | return |
| 122 | |
| 123 | for dest, src in rglob(Path(tcl_lib).parent, "**/*"): |
| 124 | yield "tcl/{}".format(dest), src |
| 125 | |
| 126 | |
| 127 | def get_layout(ns): |
no test coverage detected
searching dependent graphs…