How to use the appdirs.appdirs.AppDirs function in appdirs

To help you get started, we’ve selected a few appdirs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cosmonium / cosmonium / cosmonium / settings.py View on Github external
srgb_buffer = False
srgb_texture = False
software_srgb = False
hardware_tessellation = False
hardware_instancing = False
texture_array = False

# Window configuration
win_fullscreen = False
win_width = 1024
win_height = 768
win_fs_width = 0
win_fs_height = 0

# Application paths and files
appdirs = AppDirs(app_name)
cache_dir = appdirs.user_cache_dir
config_dir = appdirs.user_config_dir
data_dir = appdirs.user_data_dir
config_file = os.path.join(config_dir, 'config.yaml')

bodyClasses.register_class("galaxy", "galaxies",
                           BodyClass(label_color=LColor(0.0, 0.45, 0.5, 1),
                                     orbit_color=LColor(1, 1, 1, 1),
                                     show_label=False))
bodyClasses.register_class("globular", "globulars",
                           BodyClass(label_color=LColor(0.8, 0.45, 0.5, 1),
                                     orbit_color=LColor(1, 1, 1, 1),
                                     show_label=False))
bodyClasses.register_class("nebula", "nebulae",
                           BodyClass(label_color=LColor(0.541, 0.764, 0.278, 1),
                                     orbit_color=LColor(1, 1, 1, 1),

appdirs

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".

MIT
Latest version published 4 years ago

Package Health Score

77 / 100
Full package analysis

Similar packages