import builtins
import os
import pathlib
if hasattr(builtins, 'valve_tools_path'):
    valve_tools_path = builtins.valve_tools_path
    print("using " + valve_tools_path + " for valve_tools_path: ")
else:
    valve_tools_path = f'{pathlib.Path(os.path.realpath(__file__)).parent}/tools/bin/win64/'
    print("using default location for valve_tools_path: " + valve_tools_path)

if hasattr(builtins, 'steam_vr_path'):
    steam_vr_path = builtins.steam_vr_path
else:
    steam_vr_path = 'C:/Program Files (x86)/Steam/steamapps/common/SteamVR/bin/win64/'
    print("using default location for vr_cmd_path: " + steam_vr_path)


LHCALIB_PATH = valve_tools_path + "lhcalib.exe"
LH_CONSOLE_PATH = valve_tools_path + "lighthouse_console.exe"
INIT_JSON_CONFIG_PATH = f"{os.path.realpath(__file__)}/../init_json_evt.json"
