()
| 1371 | |
| 1372 | |
| 1373 | def 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 | |
| 1393 | def is64bit(): |
no outgoing calls
no test coverage detected