We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5af70c4 commit e8218b3Copy full SHA for e8218b3
psychopy/experiment/params.py
@@ -212,8 +212,8 @@ def __str__(self):
212
# If param is a path or pathlike use Path to make sure it's valid (with / not \)
213
isPathLike = bool(re.findall(r"[\\/](?!\W)", val))
214
if self.valType in ['file', 'table'] or (isPathLike and self.canBePath):
215
- val = Path(val).as_posix()
216
- val = val.replace("\\", "/").replace("//", "/")
+ val = val.replace("\\\\", "/")
+ val = val.replace("\\", "/")
217
# Hide escape char on escaped $ (other escaped chars are handled by wx but $ is unique to us)
218
val = re.sub(r"\\\$", "$", val)
219
# Replace line breaks with escaped line break character
0 commit comments