mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Get app name from ApplicationMetaData
This commit is contained in:
parent
7b1e20c955
commit
9d02086585
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue