"""Basic standalone scripts folder.""" import os def prevent_prod_execution(func): """Prevent command execution on production env.""" def wraps(*args, **kwargs): env = os.getenv('Environment', '') if env.lower() == 'prod': raise EnvironmentError('This should not be started on prod') return func(*args, **kwargs) return wraps