Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
db655eb9
Commit
db655eb9
authored
10 years ago
by
Francois Henrotte
Browse files
Options
Downloads
Patches
Plain Diff
renamed path and cpath function with more explicit names
parent
73a24050
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/onelab/python/onelab.py
+3
-3
3 additions, 3 deletions
contrib/onelab/python/onelab.py
with
3 additions
and
3 deletions
contrib/onelab/python/onelab.py
+
3
−
3
View file @
db655eb9
...
@@ -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
p
ath
(
self
,
inp
=
''
)
:
def
getP
ath
(
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
c
p
ath
(
self
,
inp
=
''
)
:
def
c
heckP
ath
(
self
,
inp
=
''
)
:
p
=
path
(
self
.
wdir
,
inp
)
p
=
path
(
self
.
wdir
,
inp
)
self
.
exists
(
p
)
self
.
exists
(
p
)
return
p
return
p
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment