Skip to content

Commit f266436

Browse files
Merge pull request #10 from philippuhl/patch-1
Fix escape characters in windows path
2 parents 05d9c3b + be3fca9 commit f266436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def run(self) -> None:
8383
if PLATFORM.startswith('win'):
8484
pth_code = (
8585
'import os; '
86-
'os.add_dll_directory(os.getenv("HACKRF_LIB_DIR", "C:\\Program Files\\HackRF\\lib"))'
86+
'os.add_dll_directory(os.getenv("HACKRF_LIB_DIR", r"C:\\Program Files\\HackRF\\lib"))'
8787
)
8888
with open(path.join(self.install_lib, "python_hackrf.pth"), mode='w', encoding='utf-8') as file:
8989
file.write(pth_code)

0 commit comments

Comments
 (0)