from core import SOURCE_ENGINE from paths import SP_PACKAGES_PATH # ============================================================================= # >> ALL DECLARATION # ============================================================================= __all__ = ('Weapon', ) # ============================================================================= # >> GLOBAL VARIABLES # ============================================================================= if SP_PACKAGES_PATH.joinpath( 'weapons', 'engines', SOURCE_ENGINE, GAME_NAME + '.py' ).isfile(): # Import the game-specific 'Weapon' class Weapon = import_module( 'weapons.engines.{engine}.{game}'.format( engine=SOURCE_ENGINE, game=GAME_NAME, ) ).Weapon elif SP_PACKAGES_PATH.joinpath( 'weapons', 'engines', SOURCE_ENGINE, '__init__.py' ).isfile(): # Import the engine-specific 'Weapon' class
# ../auth/paths.py """Stores directories used by the auth package.""" # ============================================================================= # >> IMPORTS # ============================================================================= # Source.Python Imports # Paths from paths import SP_PACKAGES_PATH from paths import CFG_PATH # ============================================================================= # >> ALL DECLARATION # ============================================================================= __all__ = ( 'AUTH_CFG_PATH', 'AUTH_PROVIDER_PATH', ) # ============================================================================= # >> GLOBAL VARIABLES # ============================================================================= # Store the path to the auth providers AUTH_PROVIDER_PATH = SP_PACKAGES_PATH.joinpath('auth', 'providers') # Store the path to the auth configurations AUTH_CFG_PATH = CFG_PATH.joinpath('auth_providers')
# Weapons import weapons._base # ============================================================================= # >> ALL DECLARATION # ============================================================================= __all__ = ('Weapon', ) # ============================================================================= # >> GLOBAL VARIABLES # ============================================================================= if SP_PACKAGES_PATH.joinpath( 'weapons', 'engines', SOURCE_ENGINE, GAME_NAME + '.py' ).isfile(): # Import the game-specific 'Weapon' class Weapon = weapons._base.Weapon = import_module( 'weapons.engines.{engine}.{game}'.format( engine=SOURCE_ENGINE, game=GAME_NAME, ) ).Weapon elif SP_PACKAGES_PATH.joinpath( 'weapons', 'engines', SOURCE_ENGINE, '__init__.py' ).isfile(): # Import the engine-specific 'Weapon' class
# ../auth/paths.py # ============================================================================= # >> IMPORTS # ============================================================================= # Source.Python imports from paths import SP_PACKAGES_PATH from paths import CFG_PATH # ============================================================================= # >> ALL DECLARATION # ============================================================================= # Add all the global variables to __all__ __all__ = [ 'AUTH_CFG_PATH', 'AUTH_PROVIDER_PATH', ] # ============================================================================= # >> GLOBAL VARIABLES # ============================================================================= # Store the path to the auth providers AUTH_PROVIDER_PATH = SP_PACKAGES_PATH.joinpath('auth', 'providers') # Store the path to the auth configurations AUTH_CFG_PATH = CFG_PATH.joinpath('auth_providers')