1 STRING_EXTENSION_OUTSIDE(SBFileSpec) 2 3 %extend lldb::SBFileSpec { 4 #ifdef SWIGPYTHON 5 %pythoncode %{ 6 # operator== is a free function, which swig does not handle, so we inject 7 # our own equality operator here 8 def __eq__(self, other): 9 return not self.__ne__(other) 10 11 fullpath = property(str, None, doc='''A read only property that returns the fullpath as a python string.''') 12 basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''') 13 dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''') 14 exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''') 15 %} 16 #endif 17 } 18