Browse Source

Fix pyinstaller standalone generation

Kentaro Wada 6 years ago
parent
commit
5d40bf64b5
2 changed files with 5 additions and 1 deletions
  1. 1 1
      labelme.spec
  2. 4 0
      labelme/main.py

+ 1 - 1
labelme.spec

@@ -6,7 +6,7 @@ block_cipher = None
 
 
 a = Analysis(
-    ['labelme/app.py'],
+    ['labelme/main.py'],
     pathex=['labelme'],
     binaries=[],
     datas=[

+ 4 - 0
labelme/main.py

@@ -117,3 +117,7 @@ def main():
     win.show()
     win.raise_()
     sys.exit(app.exec_())
+
+
+if __name__ == '__main__':
+    main()