Skip to content

Commit

Permalink
Correct for extra slash in input (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Ostieri <107915956+mariostieriansys@users.noreply.github.com>
  • Loading branch information
randallfrank and mariostieriansys committed Aug 2, 2023
1 parent 19e23bc commit 17ced1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansys/pyensight/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ def copy_write_function__(filename: str, data: bytes) -> None:
out = []
dirlen = 0
if localdir:
dirlen = len(localdir)
# we use dirlen + 1 here to remove the '/' inserted by os.path.join()
dirlen = len(localdir) + 1
for item in filelist:
try:
name = os.path.join(localdir, item)
Expand Down

0 comments on commit 17ced1e

Please sign in to comment.