Skip to content
Snippets Groups Projects
Commit c19d68d9 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

Bugfix for argument default value in hasCdo()

parent 83af6b2d
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,10 @@ class Cdo(object): ...@@ -160,7 +160,10 @@ class Cdo(object):
def unsetReturnArray(self): def unsetReturnArray(self):
self.setReturnArray(False) self.setReturnArray(False)
def hasCdo(self,path=self.CDO): def hasCdo(self,path=None):
if path is None:
path = self.CDO
if os.path.isfile(path) and os.access(path, os.X_OK): if os.path.isfile(path) and os.access(path, os.X_OK):
return True return True
return False return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment