Skip to content

Commit b4392b5

Browse files
David MukDavid Muk
David Muk
authored and
David Muk
committed
Fix: Fix temporary directory symlink issue
- Use resolved temp dir path
1 parent 0e76d0f commit b4392b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

merak/core/cybuild.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import io
2121
import logging
2222
import os
23+
import pathlib
2324
import shutil
2425
import subprocess
2526
import tempfile
@@ -51,6 +52,7 @@ def build_package_cython_extension(package_root,
5152
# ---------------------------
5253
logger.info("1. Copying package to temporary directory ...")
5354
package = os.path.basename(package_root)
55+
tmp_dir = str(pathlib.Path(tmp_dir).resolve()) # Resolve real path
5456
tmp_proot = os.path.join(tmp_dir, package)
5557
shutil.copytree(package_root, tmp_proot)
5658
logging.info("1. Done!")

0 commit comments

Comments
 (0)