Project

Profile

Help

Bug #155

open

Path evaluation in #play function fails if file is on different device

Added by Vincent Le Goff almost 5 years ago.

Status:
Open
Priority:
High
Assignee:
-
Category:
SharpScript
Sprint/Milestone:
-
% Done:

0%

Company:
-
Contact person:
-
Additional contact persons:
-

Description

The culprit is this line:

return os.path.relpath(filename, location)

If filename is on a device (say E:) and location is on a different one (say C:), then a ValueError exception is raised. Instead, encapsulate this call and go back to the absolute path if the relative path can't be found.

No data to display

Please register to edit this issue

Also available in: Atom PDF Tracking page