Searched refs:WINSCOPE_TOKEN_LOCATION (Results 1 – 1 of 1) sorted by relevance
55 WINSCOPE_TOKEN_LOCATION = os.path.expanduser('~/.config/winscope/.token') variable140 with open(WINSCOPE_TOKEN_LOCATION, 'r') as token_file:142 log.debug("Loaded token {} from {}".format(token, WINSCOPE_TOKEN_LOCATION))146 os.makedirs(os.path.dirname(WINSCOPE_TOKEN_LOCATION), exist_ok=True)148 with open(WINSCOPE_TOKEN_LOCATION, 'w') as token_file:149 log.debug("Created and saved token {} to {}".format(token, WINSCOPE_TOKEN_LOCATION))151 os.chmod(WINSCOPE_TOKEN_LOCATION, 0o600)153 … log.error("Unable to save persistent token {} to {}".format(token, WINSCOPE_TOKEN_LOCATION))