Skip to content
Snippets Groups Projects
Commit e0afcba2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

path() would fail on windows

parent dae40584
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def path(dirname, inp):
# dirname is a directory, can be empty
# inp is an optional file or subdirectory name
# returns the path to 'inp' in the same directory as 'ref'
dirname = os.path.dirname(dirname)
dirname = os.path.dirname(dirname + os.sep)
if not inp:
return dirname
if inp[0] == '/' or inp[0] == '\\' or (len(inp) > 2 and inp[1] == '\:'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment