18 lines · plain
1STRING_EXTENSION_OUTSIDE(SBFileSpec)2 3%extend lldb::SBFileSpec {4#ifdef SWIGPYTHON5 %pythoncode %{6 # operator== is a free function, which swig does not handle, so we inject7 # our own equality operator here8 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#endif17}18