Fixed a bug when sending a DMS path to a C function from Cython

This commit is contained in:
Celine Mercier
2019-08-18 19:43:51 +02:00
parent 13952358b3
commit 66441e0aef
6 changed files with 18 additions and 7 deletions

View File

@ -122,13 +122,24 @@ cdef class DMS(OBIWrapper):
@property
def full_path(self) :
'''
Returns the full path of the DMS directory
Returns the full path including the name with the extension of the DMS directory
@rtype: bytes
'''
return <bytes> self.pointer().directory_path
# DMS name with full path property getter
@property
def name_with_full_path(self) :
'''
Returns the full path with the name (meaning without the '.obidms' extension) of the DMS directory
@rtype: bytes
'''
return <bytes> self.full_path[:-7]
# command history DOT graph property getter in the form of a bytes string
@property
def dot_history_graph(self):