Skip to content

Commit

Permalink
Fix a typo causing os.relpath being called instead of os.realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ authored and ondratu committed Jul 24, 2023
1 parent 4005e8a commit 3fa4731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prusa/link/serial/serial_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _reopen(self) -> bool:
paths.extend(glob.glob("/dev/ttyUSB*"))
else:
# Follow symlinks to the real device file
device_path = os.path.relpath(self.configured_port)
device_path = os.path.realpath(self.configured_port)
paths = [device_path]

# Pair the usb printer paths with their serial numbers
Expand Down

0 comments on commit 3fa4731

Please sign in to comment.