file permissions; #! line; moved things about

This commit is contained in:
2023-01-13 15:30:53 +01:00
parent d75e4093f0
commit 1623e339ac
5 changed files with 14 additions and 7 deletions

6
grum.py Normal file → Executable file
View File

@ -1,3 +1,7 @@
from grum.cli import main #!/usr/bin/env python
from grum import main
main() main()

View File

@ -0,0 +1,4 @@
from .cli import main

6
grum/cli/grum.py → grum/cli.py Executable file → Normal file
View File

@ -1,11 +1,9 @@
#!/usr/bin/env python
import sys import sys
from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QApplication
from grum import ctrl_c, theme from . import ctrl_c, theme
from grum.mainwin import MainWindow from .mainwin import MainWindow
def main(): def main():

View File

@ -1 +0,0 @@
from .grum import main

View File

@ -3,5 +3,7 @@ from setuptools import setup
if __name__ == "__main__": if __name__ == "__main__":
setup( setup(
install_requires=["pyqt5", "pyqtgraph"], install_requires=["pyqt5", "pyqtgraph"],
entry_points={"console_scripts": ["grum=grum.cli:main"]}, entry_points={"console_scripts": ["grum=grum:main"]},
) )