summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBFileSpec.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBFileSpec.i')
-rw-r--r--lldb/scripts/Python/interface/SBFileSpec.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBFileSpec.i b/lldb/scripts/Python/interface/SBFileSpec.i
index e2ef74bc93a..d3fae44de8b 100644
--- a/lldb/scripts/Python/interface/SBFileSpec.i
+++ b/lldb/scripts/Python/interface/SBFileSpec.i
@@ -66,6 +66,18 @@ public:
bool
GetDescription (lldb::SBStream &description) const;
+
+ %pythoncode %{
+ __swig_getmethods__["basename"] = GetFilename
+ if _newclass: x = property(GetFilename, None)
+
+ __swig_getmethods__["dirname"] = GetDirectory
+ if _newclass: x = property(GetDirectory, None)
+
+ __swig_getmethods__["exists"] = Exists
+ if _newclass: x = property(Exists, None)
+ %}
+
};
} // namespace lldb
OpenPOWER on IntegriCloud