Ticket #2398: patch
| File patch, 0.6 kB (added by nk, 2 years ago) |
|---|
-
src/common/helpers.py
442 442 exec_command(command) 443 443 444 444 def get_file_path_from_dnd_dropped_uri(uri): 445 # if in windows AND we somehow get uri not starting with /// 446 if os.name == 'nt' and not uri.startswith('///'): 447 pos = uri.find('///') 448 uri = uri[pos:] 445 449 path = urllib.url2pathname(uri) # escape special chars 446 450 path = path.strip('\r\n\x00') # remove \r\n and NULL 447 451 # get the path to file
