Executables now have a useful __str__ function.
This commit is contained in:
		| @@ -124,6 +124,11 @@ def __repr__(self): | ||||
|         return "<exe: %s>" % self.exe | ||||
|  | ||||
|  | ||||
|     def __str__(self): | ||||
|         return ' '.join(self.exe) | ||||
|  | ||||
|  | ||||
|  | ||||
| def which(name, **kwargs): | ||||
|     """Finds an executable in the path like command-line which.""" | ||||
|     path     = kwargs.get('path', os.environ.get('PATH', '').split(os.pathsep)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Todd Gamblin
					Todd Gamblin