Config

spykes.config.get_data_directory()[source]

Returns the home directory for Spykes data.

By default, this points to spykes. This can be overridden by setting the SPYKES_DATA environment variable to point to the directory of your choice.

Returns:The path to the data directory.
Return type:str
spykes.config.get_home_directory()[source]

Returns the home directory, as a string.

The home directory is either the HOME environment variable, or the directory pointed to by , or the /tmp directory if neither of those have write access.

Returns:The path to the home directory.
Return type:str