diff options
Diffstat (limited to 'lldb/scripts/interface/SBFileSpec.i')
-rw-r--r-- | lldb/scripts/interface/SBFileSpec.i | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lldb/scripts/interface/SBFileSpec.i b/lldb/scripts/interface/SBFileSpec.i index 11e9c769730..d5cdb7d3c4a 100644 --- a/lldb/scripts/interface/SBFileSpec.i +++ b/lldb/scripts/interface/SBFileSpec.i @@ -92,13 +92,19 @@ public: return spec_file return None - fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''') + __swig_getmethods__["fullpath"] = __get_fullpath__ + if _newclass: fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''') + + __swig_getmethods__["basename"] = GetFilename + if _newclass: basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''') + + __swig_getmethods__["dirname"] = GetDirectory + if _newclass: dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''') + + __swig_getmethods__["exists"] = Exists + if _newclass: exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''') %} }; -%attribute(lldb::SBFileSpec, const char*, basename, GetFilename); -%attribute(lldb::SBFileSpec, const char*, dirname, GetDirectory); -%attribute(lldb::SBFileSpec, bool, exists, Exists); - } // namespace lldb |