Commit e749bf43f817c26b6c0fd38a64481bb705e920ee
1 parent
4068cf16
Exists in
master
ADD: Freeze suport to pyinstaller and updated version in disclaimer
Showing
2 changed files
with
13 additions
and
8 deletions
Show diff stats
app.py
... | ... | @@ -65,6 +65,10 @@ class InVesalius(wx.App): |
65 | 65 | """ |
66 | 66 | Initialize splash screen and main frame. |
67 | 67 | """ |
68 | + | |
69 | + from multiprocessing import freeze_support | |
70 | + freeze_support() | |
71 | + | |
68 | 72 | self.SetAppName("InVesalius 3") |
69 | 73 | self.splash = SplashScreen() |
70 | 74 | self.splash.Show() |
... | ... | @@ -283,14 +287,15 @@ def main(): |
283 | 287 | application.MainLoop() |
284 | 288 | |
285 | 289 | if __name__ == '__main__': |
286 | - # Needed in win 32 exe | |
287 | - if hasattr(sys,"frozen") and (sys.frozen == "windows_exe"\ | |
288 | - or sys.frozen == "console_exe"): | |
289 | - multiprocessing.freeze_support() | |
290 | + #Is needed because of pyinstaller | |
291 | + multiprocessing.freeze_support() | |
292 | + | |
293 | + #Needed in win 32 exe | |
294 | + if hasattr(sys,"frozen") and sys.platform.startswith('win'): | |
290 | 295 | |
291 | 296 | #Click in the .inv3 file support |
292 | 297 | root = _winreg.HKEY_CLASSES_ROOT |
293 | - key = "InVesalius 3.0\InstallationDir" | |
298 | + key = "InVesalius 3.1\InstallationDir" | |
294 | 299 | hKey = _winreg.OpenKey (root, key, 0, _winreg.KEY_READ) |
295 | 300 | value, type_ = _winreg.QueryValueEx (hKey, "") |
296 | 301 | path = os.path.join(value,'dist') | ... | ... |
invesalius/gui/dialogs.py
... | ... | @@ -991,8 +991,8 @@ def ShowAboutDialog(parent): |
991 | 991 | |
992 | 992 | info = wx.AboutDialogInfo() |
993 | 993 | info.Name = "InVesalius" |
994 | - info.Version = "3.0" | |
995 | - info.Copyright = _("(c) 2007-2015 Center for Information Technology Renato Archer - CTI") | |
994 | + info.Version = "3.1" | |
995 | + info.Copyright = _("(c) 2007-2017 Center for Information Technology Renato Archer - CTI") | |
996 | 996 | info.Description = wordwrap(_("InVesalius is a medical imaging program for 3D reconstruction. It uses a sequence of 2D DICOM image files acquired with CT or MRI scanners. InVesalius allows exporting 3D volumes or surfaces as mesh files for creating physical models of a patient's anatomy using additive manufacturing (3D printing) technologies. The software is developed by Center for Information Technology Renato Archer (CTI), National Council for Scientific and Technological Development (CNPq) and the Brazilian Ministry of Health.\n\n InVesalius must be used only for research. The Center for Information Technology Renato Archer is not responsible for damages caused by the use of this software.\n\n Contact: invesalius@cti.gov.br"), 350, wx.ClientDC(parent)) |
997 | 997 | |
998 | 998 | # _("InVesalius is a software for medical imaging 3D reconstruction. ")+\ |
... | ... | @@ -1007,7 +1007,7 @@ def ShowAboutDialog(parent): |
1007 | 1007 | "Thiago Franco de Moraes", |
1008 | 1008 | "Jorge Vicente Lopes da Silva", |
1009 | 1009 | "Victor Hugo de Oliveira e Souza (navigator)", |
1010 | - "Renan Hiroshi Matsuda (navigator)" | |
1010 | + "Renan Hiroshi Matsuda (navigator)", | |
1011 | 1011 | "Tatiana Al-Chueyr (former)", |
1012 | 1012 | "Guilherme Cesar Soares Ruppert (former)", |
1013 | 1013 | "Fabio de Souza Azevedo (former)", | ... | ... |