mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Remove sys.path frobbing
I don't think this has been necessary since we stopped loading a C extension. Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
		
							parent
							
								
									20ffcc6dc5
								
							
						
					
					
						commit
						6371eaf102
					
				
							
								
								
									
										14
									
								
								britney.py
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								britney.py
									
									
									
									
									
								
							@ -194,20 +194,6 @@ from functools import reduce, partial
 | 
			
		||||
from itertools import chain, ifilter, product
 | 
			
		||||
from operator import attrgetter
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    # Check if there is a python-search dir for this version of
 | 
			
		||||
    # python.  If so, use the britney module for that.
 | 
			
		||||
    mdir = os.path.dirname(sys.argv[0])
 | 
			
		||||
    if sys.version_info[0] == 3:
 | 
			
		||||
        python_dir = "python3"
 | 
			
		||||
    else:
 | 
			
		||||
        python_dir = "python2.%d" % (sys.version_info[1])
 | 
			
		||||
    idir = os.path.join(mdir, python_dir)
 | 
			
		||||
    if os.path.isdir(idir):
 | 
			
		||||
        print "N: Loading from %s" % python_dir
 | 
			
		||||
        # Insert in front (else current dir is before it, which makes
 | 
			
		||||
        # it useless).
 | 
			
		||||
        sys.path.insert(0, idir)
 | 
			
		||||
 | 
			
		||||
from installability.builder import InstallabilityTesterBuilder
 | 
			
		||||
from excuse import Excuse
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user