X2Cscope / pyx2cscope

python implementation of x2cscope
Other
1 stars 0 forks source link

CLean and minimize __main__.py #40

Open X2Cscope opened 1 month ago

X2Cscope commented 1 month ago

There are way too much import on main.py.

If I encounter an issue with qt, GUI or any dependency, I still not cant check the version or print --help options.

Like here:

python -m pyx2cscope --help
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python312\Lib\site-packages\pyx2cscope\__main__.py", line 17, in <module>
    from pyx2cscope.gui.watchView.minimal_gui import X2cscopeGui

If I just want to print help or version, it loads big ma python libs:

Solution: Move GUI related libs to the gui/main.py or something similar.

edras commented 1 month ago

42 this Pull-request address this issue

edras commented 2 weeks ago

45 this Pull-request address this issue