Skip to content
Snippets Groups Projects
Commit db655eb9 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

renamed path and cpath function with more explicit names

parent 73a24050
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ def file_exist(filename): ...@@ -38,7 +38,7 @@ def file_exist(filename):
return False return False
def path(dirname, inp): def path(dirname, inp):
# dirname is a directory, can be empty if model called in cmd line # dirname is a directory, can be empty
# inp is an aptional file or subdirectory name # inp is an aptional file or subdirectory name
# returns the path to 'inp' in the same directory as 'ref' # returns the path to 'inp' in the same directory as 'ref'
if not inp: if not inp:
...@@ -453,7 +453,7 @@ class client : ...@@ -453,7 +453,7 @@ class client :
self._send(self._GMSH_ERROR, line.rstrip().encode('utf-8')) self._send(self._GMSH_ERROR, line.rstrip().encode('utf-8'))
sys.exit(1) sys.exit(1)
def path(self, inp='') : def getPath(self, inp='') :
return path(self.wdir,inp) return path(self.wdir,inp)
def exists(self, p) : def exists(self, p) :
...@@ -462,7 +462,7 @@ class client : ...@@ -462,7 +462,7 @@ class client :
exit(0) exit(0)
return True return True
def cpath(self, inp='') : def checkPath(self, inp='') :
p = path(self.wdir,inp) p = path(self.wdir,inp)
self.exists(p) self.exists(p)
return p return p
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment