mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-29 16:10:06 +00:00
Don't do chmod unless necessarily (breaks py.test on Docker)
This commit is contained in:
parent
ab0e5fa425
commit
68c3ce56a9
@ -92,7 +92,8 @@ def spoof(replace_program, with_spoof):
|
||||
"""
|
||||
env = os.environ.copy()
|
||||
spoofer = os.path.join(SPOOF_PATH, with_spoof)
|
||||
check_call(['chmod', "+x", spoofer])
|
||||
if not os.access(spoofer, os.X_OK):
|
||||
os.chmod(spoofer, 0o755)
|
||||
env['OCRMYPDF_' + replace_program.upper()] = spoofer
|
||||
return env
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user