mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-25 00:14:28 +08:00
Get app name from ApplicationMetaData
This commit is contained in:
parent
7b1e20c955
commit
9d02086585
@ -9,6 +9,7 @@ import os
|
||||
import sys
|
||||
|
||||
from UM.Platform import Platform
|
||||
from cura.ApplicationMetadata import CuraAppName
|
||||
|
||||
parser = argparse.ArgumentParser(prog = "cura",
|
||||
add_help = False)
|
||||
@ -20,11 +21,6 @@ parser.add_argument("--debug",
|
||||
known_args = vars(parser.parse_known_args()[0])
|
||||
|
||||
if not known_args["debug"]:
|
||||
try:
|
||||
from cura.CuraVersion import CuraAppName # type: ignore
|
||||
except ImportError:
|
||||
CuraAppName = "cura"
|
||||
|
||||
def get_cura_dir_path():
|
||||
if Platform.isWindows():
|
||||
return os.path.expanduser("~/AppData/Roaming/" + CuraAppName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user