MCPcopy
hub / github.com/Neo23x0/Loki / get_application_path

Function get_application_path

loki.py:1373–1390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1371
1372
1373def get_application_path():
1374 try:
1375 if getattr(sys, 'frozen', False):
1376 application_path = os.path.dirname(os.path.realpath(sys.executable))
1377 else:
1378 application_path = os.path.dirname(os.path.realpath(__file__))
1379 if "~" in application_path and os_platform == "windows":
1380 # print "Trying to translate"
1381 # print application_path
1382 application_path = win32api.GetLongPathName(application_path)
1383 #if args.debug:
1384 # logger.log("DEBUG", "Init", "Application Path: %s" % application_path)
1385 return application_path
1386 except Exception as e:
1387 print("Error while evaluation of application path")
1388 traceback.print_exc()
1389 if args.debug:
1390 sys.exit(1)
1391
1392
1393def is64bit():

Callers 2

__init__Method · 0.70
updateLokiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected