0

Fix rendering onto mounted CIFS shares

You still shouldn't do it for performance reasons but I guess
now you can do it in theory. Yay.
This commit is contained in:
Nicolas F
2021-07-10 19:58:11 +02:00
parent dab3268b3b
commit 86b241a5f7
2 changed files with 21 additions and 12 deletions

View File

@@ -181,6 +181,10 @@ top-level directory.
od_fd = os.open(self.outputdir, os.O_DIRECTORY)
try:
os.symlink("markers", "icons", target_is_directory=True, dir_fd=od_fd)
except OSError:
# Example setup where this happens:
# Linux renders onto Windows CIFS share
logging.warning("Could not create the icons symlink")
finally:
os.close(od_fd)
# write a dummy baseMarkers.js if none exists