Skip to content

Commit a4f93ce

Browse files
author
Eric
committed
Packaging tweaks
1 parent 3f9669b commit a4f93ce

5 files changed

Lines changed: 4780 additions & 4765 deletions

File tree

DicomBrowser/DicomBrowser.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def addSourceDir(self,rootdir):
469469
self.lastDir=os.path.dirname(rootdir)
470470

471471

472-
def main(args,app=None):
472+
def main(args=[],app=None):
473473
if not app:
474474
app = QtGui.QApplication(args)
475475
app.setAttribute(Qt.AA_DontUseNativeMenuBar) # in OSX, forces menubar to be in window
@@ -488,6 +488,12 @@ def main(args,app=None):
488488

489489
return app.exec_() if app else 0
490490

491+
492+
def mainargv():
493+
'''setuptools compatible entry point.'''
494+
main(sys.argv)
495+
496+
491497
if __name__ == '__main__':
492498
sys.exit(main(sys.argv))
493499

0 commit comments

Comments
 (0)