Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Feb 20, 2025
1 parent 159cfee commit d636a57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py_installer/Discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,13 @@ def _K1AndK2FindAllServiceFilesAndPairings(self, context:Context):
moonrakerConfigFilePath = f"{Paths.CrealityOsUserDataPath_K1}/printer_data/config/moonraker.conf"
else:
# The moonraker config file should be here: "/mnt/UDISK/printer_data/config/moonraker.conf"
moonrakerConfigFilePath = f"{Paths.CrealityOsUserDataPath_K2}/printer_data/config/moonraker.conf"
# TODO - fix this
moonrakerConfigFilePath = "/usr/share/moonraker/moonraker.conf"

if os.path.isfile(moonrakerConfigFilePath):
Logger.Debug(f"Found moonraker config file: {moonrakerConfigFilePath}")
else:
Logger.Warn(f"Failed to find Moonraker config file, expected location: {moonrakerConfigFilePath}")
moonrakerConfigFilePath = None

# Check if we are missing either. If so, the user most likely didn't install Moonraker.
Expand Down

0 comments on commit d636a57

Please sign in to comment.