(relative_path)
| 63 | # 0. 核心算法库 |
| 64 | # ========================================== |
| 65 | def resource_path(relative_path): |
| 66 | try: |
| 67 | base_path = sys._MEIPASS |
| 68 | except Exception: |
| 69 | base_path = os.path.abspath(".") |
| 70 | return os.path.join(base_path, relative_path) |
| 71 | |
| 72 | |
| 73 | # ========================================== |
nothing calls this directly
no outgoing calls
no test coverage detected