commandSearch.pins module¶
-
commandSearch.pins.
findLocation
()¶ Pins get stored in the LOCALAPPDATA variable as a json file, since the local path changes per user, the path gets contructed each time. In case the LOCALAPPDATA directory gets cleared.
Returns: Path to pins json file Return type: str
-
commandSearch.pins.
get
()¶ Get all pins from the global variable, if the global variable cannot be found an empty dictionary will be returned.
Returns: Pins data Return type: dict
-
commandSearch.pins.
read
()¶ Decode the data stored in the pins file and set it in the global PINS variable. If a path cannot be found, the PINS variable will be an empty dictionary.
-
commandSearch.pins.
write
()¶ Encode the data stored in the global PINS variable and write it to pins location path.
Raises: ValueError – if save location cannot be found