You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project currently uses the ntpath module for path manipulations. While this works in many cases, ntpath is specific to Windows and may result in incorrect behavior on non-Windows platforms such as Linux or macOS.
The os.path module automatically selects the appropriate path implementation for the current operating system (ntpath on Windows, posixpath on Unix-like systems), making it the preferred choice for cross-platform compatibility.
Unless there is a specific need for Windows-style path handling, I recommend replacing all occurrences of ntpath in utility.py with os.path, especially considering that OctoPrint is most commonly used on Linux-based systems like Raspberry Pi (OctoPi).
The text was updated successfully, but these errors were encountered:
This project currently uses the
ntpath
module for path manipulations. While this works in many cases,ntpath
is specific to Windows and may result in incorrect behavior on non-Windows platforms such as Linux or macOS.The
os.path
module automatically selects the appropriate path implementation for the current operating system (ntpath
on Windows,posixpath
on Unix-like systems), making it the preferred choice for cross-platform compatibility.Unless there is a specific need for Windows-style path handling, I recommend replacing all occurrences of
ntpath
inutility.py
withos.path
, especially considering that OctoPrint is most commonly used on Linux-based systems like Raspberry Pi (OctoPi).The text was updated successfully, but these errors were encountered: