()
| 12 | |
| 13 | |
| 14 | def main(): |
| 15 | try: |
| 16 | import_module("PySide6") |
| 17 | |
| 18 | lite = False |
| 19 | except ModuleNotFoundError: |
| 20 | lite = True |
| 21 | |
| 22 | # if module is executed directly (i.e. `python -m deeplabcut.__init__`) launch straight into the GUI |
| 23 | if not lite: |
| 24 | print("Starting GUI...") |
| 25 | from deeplabcut.gui.launch_script import launch_dlc |
| 26 | |
| 27 | launch_dlc() |
| 28 | else: |
| 29 | print( |
| 30 | "You installed DLC lite, thus GUI's cannot be used. If you need GUI support please: pip install" |
| 31 | "'deeplabcut[gui]''" |
| 32 | ) |
| 33 | |
| 34 | |
| 35 | if __name__ == "__main__": |