Skip to content

Commit

Permalink
Packaging tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Nov 16, 2016
1 parent 3f9669b commit a4f93ce
Show file tree
Hide file tree
Showing 5 changed files with 4,780 additions and 4,765 deletions.
8 changes: 7 additions & 1 deletion DicomBrowser/DicomBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def addSourceDir(self,rootdir):
self.lastDir=os.path.dirname(rootdir)


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

return app.exec_() if app else 0


def mainargv():
'''setuptools compatible entry point.'''
main(sys.argv)


if __name__ == '__main__':
sys.exit(main(sys.argv))

Loading

0 comments on commit a4f93ce

Please sign in to comment.