Changeset 5842
- Timestamp:
- 08/20/10 09:06:59 (3 years ago)
- Location:
- network-scanner/trunk
- Files:
-
- 2 modified
-
bin/umit (modified) (2 diffs)
-
umit/gui/App.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-scanner/trunk/bin/umit
r5632 r5842 41 41 from umit.core.Version import VERSION 42 42 from umit.core.Utils import development_mode 43 44 43 45 44 class UmitExceptionHook(object): … … 201 200 202 201 def main(args): 203 # Setting the umit home directory 204 from umit.core.Paths import Path 205 Path.set_umit_conf(os.path.dirname(args[0])) 206 ################################# 207 Path.set_running_path(os.path.abspath(os.path.dirname(args[0]))) 208 209 # Check permissions 210 from umit.gui.Utils import verify_config_access 211 verify_config_access() 212 213 from umit.gui.App import App 214 215 umit_app = App() 202 try: 203 # Setting the umit home directory 204 from umit.core.Paths import Path 205 Path.set_umit_conf(os.path.dirname(args[0])) 206 ################################# 207 Path.set_running_path(os.path.abspath(os.path.dirname(args[0]))) 208 209 # Check permissions 210 from umit.gui.Utils import verify_config_access 211 verify_config_access() 212 213 from umit.gui.App import App 214 215 umit_app = App() 216 except KeyboardInterrupt: 217 # there is no need to run safe_shutdown() 218 # cause we haven't created App instance yet 219 sys.exit(signal.SIGINT) 216 220 217 221 if os.name == "posix": -
network-scanner/trunk/umit/gui/App.py
r5632 r5842 47 47 class App: 48 48 def __init__(self, args=sys.argv): 49 self.main_window = None 49 50 # Initialite the PluginEngine 50 51 PluginEngine() … … 79 80 log.debug("SIGNUM: %s" % signum) 80 81 81 try:82 if self.main_window: 82 83 scans = self.main_window.scan_notebook.get_children() 83 84 for scan in scans: … … 87 88 self.main_window.scan_notebook.remove(scan) 88 89 del(scan) 89 except NameError:90 pass91 90 92 self.main_window._exit_cb()91 self.main_window._exit_cb() 93 92 sys.exit(signum) 94 93
