Package horizons :: Package util :: Module platform
[hide private]
[frames] | no frames]

Module platform

source code

Functions [hide private]
 
get_home_directory()
Returns the home directory of the user running UH.
source code
 
get_old_user_game_directory()
Returns the old directory where for game-related data.
source code
 
_try_directories(paths, default=None) source code
 
get_user_game_directories()
Returns a triplet of directories for game-related data.
source code
Variables [hide private]
  CSIDL_PERSONAL = 5
  UH = 'unknown-horizons'
  __package__ = 'horizons.util'
Function Details [hide private]

get_old_user_game_directory()

source code 

Returns the old directory where for game-related data. This is used when migrating from the old structure to the new

get_user_game_directories()

source code 

Returns a triplet of directories for game-related data. The first value is the directory for configuration files (settings.xml) The second is the directory for game data (saves, maps, screenshots, logs) The third is the directory for cache (atlas-metadata.cache, yamldata.cache)