mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 06:43:15 +08:00
Set default engine location to unix standard bin dir
Contributes to #41 Contributes to #42
This commit is contained in:
parent
e62dee6993
commit
7e9870c6cb
@ -26,7 +26,7 @@ class CuraEngineBackend(Backend):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
# Find out where the engine is located, and how it is called. This depends on how Cura is packaged and which OS we are running on.
|
# Find out where the engine is located, and how it is called. This depends on how Cura is packaged and which OS we are running on.
|
||||||
default_engine_location = "../PinkUnicornEngine/CuraEngine"
|
default_engine_location = os.path.join(Application.getInstallPrefix(), "bin", "CuraEngine")
|
||||||
if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
default_engine_location = os.path.join(os.path.dirname(os.path.abspath(sys.executable)), "CuraEngine")
|
default_engine_location = os.path.join(os.path.dirname(os.path.abspath(sys.executable)), "CuraEngine")
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user