(relative_path)
| 10 | |
| 11 | # Helper Function for Bundled Assets |
| 12 | def resource_path(relative_path): |
| 13 | try: |
| 14 | base_path = sys._MEIPASS |
| 15 | except Exception: |
| 16 | base_path = os.path.abspath(".") |
| 17 | |
| 18 | return os.path.join(base_path, relative_path) |
| 19 | |
| 20 | |
| 21 | mixer.init() |