File: 1001-app-in-subdir.diff

package info (click to toggle)
openmotor 0.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,264 kB
  • sloc: python: 5,273; sh: 28; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 589 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/main.py
+++ b/main.py
@@ -1,6 +1,7 @@
 import sys
-from app import App
+from .app import App
 from PyQt6.QtCore import Qt
 
 app = App(sys.argv)
 sys.exit(app.exec())
+
--- a/setup.py
+++ b/setup.py
@@ -17,5 +17,11 @@
     url='https://github.com/reilleya/openMotor',
     description='An open-source internal ballistics simulator for rocket motor experimenters',
     long_description=open('README.md').read(),
+    entry_points={
+        'gui_scripts': [
+            'openmotor=openmotor.main:main',
+        ],
+    },
     cmdclass=cmdclass
-)
\ No newline at end of file
+)
+