Changeset 3115
- Timestamp:
- 07/09/08 14:24:25 (5 years ago)
- Location:
- branch/UmitPlugins
- Files:
-
- 2 modified
-
source-plugins/umit-console/sources/console/console.py (modified) (1 diff)
-
umitPlugin/Tree.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/UmitPlugins/source-plugins/umit-console/sources/console/console.py
r3093 r3115 395 395 iter = self.buffer.get_iter_at_mark(self.buffer.get_insert()) 396 396 self.buffer.insert_with_tags_by_name(iter, 397 'Welcome to UMIT Python Shell (running on %s)\n' % os. uname()[0],397 'Welcome to UMIT Python Shell (running on %s)\n' % os.name, 398 398 'center', 'extern' 399 399 ) -
branch/UmitPlugins/umitPlugin/Tree.py
r3114 r3115 48 48 path = os.path.join(Path.config_dir, "plugins-temp", \ 49 49 lib.split('.')[-1] + get_config_vars("SO")[0]) 50 51 out = open(path, 'wb') 52 53 out.write(reader.file.read( \ 54 'lib/%s%s' % (lib.replace(".", "/"), get_config_vars("SO")[0])) \ 55 ) 56 out.close() 50 51 try: 52 out = open(path, 'wb') 53 54 out.write(reader.file.read( \ 55 'lib/%s%s' % (lib.replace(".", "/"), get_config_vars("SO")[0])) \ 56 ) 57 out.close() 58 except Exception, exc: 59 continue 57 60 58 61 path = os.path.dirname(out.name) … … 62 65 sys.path.insert(0, path) 63 66 64 module =original_import(name.replace(get_config_vars("SO")[0], ""), \67 return original_import(name.replace(get_config_vars("SO")[0], ""), \ 65 68 level=0) 66 69 except Exception, exc: 70 continue 67 71 finally: 68 72 sys.path.pop(0) 69 70 return module 71 73 72 74 raise err 73 75
