Skip to content

Commit 2cf6a2a

Browse files
committed
Use raw string in path
1 parent 97a65ae commit 2cf6a2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydfu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def get_backend(): # Return a specific backend for windows
8585
bits, linkage = platform.architecture()
8686
if platform.system() == "Windows":
8787
if bits == "64bit":
88-
return usb.backend.libusb1.get_backend(find_library=lambda x: ".\libusb-1.0.dll")
88+
return usb.backend.libusb1.get_backend(find_library=lambda x: r".\libusb-1.0.dll")
8989
else:
90-
return usb.backend.libusb1.get_backend(find_library=lambda x: ".\libusb-1.0_32b.dll")
90+
return usb.backend.libusb1.get_backend(find_library=lambda x: r".\libusb-1.0_32b.dll")
9191
return None # default
9292

9393
import inspect

0 commit comments

Comments
 (0)