dont break if sys.argv[0] is a relative path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								2a5ee06b0e
							
						
					
				
			
			
				commit
				
					
						1c1ebac90c
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -354,7 +354,7 @@ class Cdist:
 | 
			
		|||
 | 
			
		||||
   def link_type_to_emulator(self):
 | 
			
		||||
      """Link type names to cdist-type-emulator"""
 | 
			
		||||
      source = sys.argv[0]
 | 
			
		||||
      source = os.path.abspath(sys.argv[0])
 | 
			
		||||
      for type in self.list_types():
 | 
			
		||||
         destination = os.path.join(self.bin_dir, type)
 | 
			
		||||
         log.debug("Linking %s to %s", source, destination)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue