delete system import
This commit is contained in:
		
							parent
							
								
									06204dcd9c
								
							
						
					
					
						commit
						70d01a0043
					
				| @ -11,13 +11,6 @@ platform = get_platform() | |||||||
| print '[script.module.libtorrent]: platform ' + str(platform) | print '[script.module.libtorrent]: platform ' + str(platform) | ||||||
| 
 | 
 | ||||||
| try: | try: | ||||||
|     import libtorrent |  | ||||||
| 
 |  | ||||||
|     print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from system' |  | ||||||
| except Exception, e: |  | ||||||
|     print '[script.module.libtorrent]: Error importing from system. Exception: ' + str(e) |  | ||||||
| 
 |  | ||||||
|     try: |  | ||||||
|     #dirname = os.path.join(xbmc.translatePath('special://home'), 'addons', 'script.module.libtorrent', |     #dirname = os.path.join(xbmc.translatePath('special://home'), 'addons', 'script.module.libtorrent', | ||||||
|     #                       'python_libtorrent', platform['system']) |     #                       'python_libtorrent', platform['system']) | ||||||
|     #sys.path.insert(0, dirname) |     #sys.path.insert(0, dirname) | ||||||
| @ -32,6 +25,6 @@ except Exception, e: | |||||||
| 
 | 
 | ||||||
|     #print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from python_libtorrent.' + platform[ |     #print '[script.module.libtorrent]: Imported libtorrent v' + libtorrent.version + ' from python_libtorrent.' + platform[ | ||||||
|     #    'system'] |     #    'system'] | ||||||
|     except Exception, e: | except Exception, e: | ||||||
|     print '[script.module.libtorrent]: Error importing python_libtorrent.' + platform['system'] + '. Exception: ' + str(e) |     print '[script.module.libtorrent]: Error importing python_libtorrent.' + platform['system'] + '. Exception: ' + str(e) | ||||||
|     pass |     pass | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user