mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-28 07:30:04 +00:00
Use abspath instead of relpath for temporary directory symlink
This commit is contained in:
parent
ad30833ffc
commit
cfd119325d
@ -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
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user