mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 13:51:12 -07:00
Merge pull request #12769 from Ultimaker/CURA-9365_add_conan_info_to_log
CURA 9365 add conan info to log
This commit is contained in:
commit
d1453c5f69
2 changed files with 17 additions and 0 deletions
|
|
@ -60,3 +60,14 @@ try:
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
CuraAppDisplayName = DEFAULT_CURA_DISPLAY_NAME
|
||||||
|
|
||||||
|
DEPENDENCY_INFO = {}
|
||||||
|
try:
|
||||||
|
from pathlib import Path
|
||||||
|
conan_install_info = Path(__file__).parent.parent.joinpath("conan_install_info.json")
|
||||||
|
if conan_install_info.exists():
|
||||||
|
import json
|
||||||
|
with open(conan_install_info, "r") as f:
|
||||||
|
DEPENDENCY_INFO = json.loads(f.read())
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
|
||||||
|
|
@ -820,6 +820,12 @@ class CuraApplication(QtApplication):
|
||||||
def run(self):
|
def run(self):
|
||||||
super().run()
|
super().run()
|
||||||
|
|
||||||
|
if len(ApplicationMetadata.DEPENDENCY_INFO) > 0:
|
||||||
|
Logger.debug("Using Conan managed dependencies: " + ", ".join(
|
||||||
|
[dep["recipe"]["id"] for dep in ApplicationMetadata.DEPENDENCY_INFO["installed"] if dep["recipe"]["version"] != "latest"]))
|
||||||
|
else:
|
||||||
|
Logger.warning("Could not find conan_install_info.json")
|
||||||
|
|
||||||
Logger.log("i", "Initializing machine error checker")
|
Logger.log("i", "Initializing machine error checker")
|
||||||
self._machine_error_checker = MachineErrorChecker(self)
|
self._machine_error_checker = MachineErrorChecker(self)
|
||||||
self._machine_error_checker.initialize()
|
self._machine_error_checker.initialize()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue