Skip to content
Snippets Groups Projects
Verified Commit d03274b2 authored by David Hoese's avatar David Hoese
Browse files

Fix syntax error in raw_manager.py

parent 4a769579
Branches
No related tags found
No related merge requests found
......@@ -15,11 +15,16 @@ from subprocess import check_call as sh
LOG = logging.getLogger(__name__)
core = re.compile('[^'+re.escape(os.sep)+']+')
# where is directory b, relative to directory a? # Copied from rays cvs playgrd
def relativedir(a, b):
"""Where is directory b, relative to directory a?
Copied from rays cvs playgrd.
"""
a = os.path.abspath(a)
b = os.path.abspath(b)
pfx = os.path.dirname(os.path.commonprefix( a,b]))+os.sep
pfx = os.path.dirname(os.path.commonprefix([a, b])) + os.sep
a = a.replace(pfx, '', 1)
b = b.replace(pfx, '', 1)
a = re.sub(core, '..', a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment