From cfd119325dc1b3e01a42d1cb2b251b16763eba1e Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Sat, 11 Oct 2014 17:48:56 -0700 Subject: [PATCH] Use abspath instead of relpath for temporary directory symlink --- src/ocrpage.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ocrpage.py b/src/ocrpage.py index 5bedcf71..13188c60 100755 --- a/src/ocrpage.py +++ b/src/ocrpage.py @@ -152,11 +152,9 @@ def re_symlink(input_file, soft_link_name, logger, logger_mutex): with logger_mutex: logger.debug("os.symlink(%s, %s)" % (input_file, soft_link_name)) - # Create symbolic link relative to original directory, so that the entire - # path can be moved around + # Create symbolic link using absolute path os.symlink( - os.path.relpath(os.path.abspath(input_file), - os.path.abspath(os.path.dirname(soft_link_name))), + os.path.abspath(input_file), soft_link_name )