Skip to content

Commit

Permalink
Port Tyler's fix from the core library
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay authored Oct 28, 2023
1 parent 7fa75f5 commit c6dbe86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdahole2/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def check_and_fix_long_filename(filename, tmpdir=os.path.curdir,
if make_symlink:
# shorten path by creating a symlink inside a safe temp dir
_, ext = os.path.splitext(filename)
dirname = tempfile.mkdtemp(dir=tmpdir)
dirname = os.path.relpath(tempfile.mkdtemp(dir=tmpdir))
newname = os.path.join(dirname, os.path.basename(filename))
if len(newname) > max_length:
fd, newname = tempfile.mkstemp(suffix=ext, dir=dirname)
Expand Down

0 comments on commit c6dbe86

Please sign in to comment.