ok
Direktori : /opt/alt/python37/lib/python3.7/site-packages/raven/scripts/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/scripts/__pycache__/runner.cpython-37.pyc |
B ��Y� � @ s� d Z ddlmZ ddlmZ ddlZddlZddlZddlZddlm Z ddl mZmZ ddl mZ dd � Zd d� Zdd � Zdd� Zdd� ZdS )z� raven.scripts.runner ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_import)�print_functionN)�OptionParser)�Client�get_version)�jsonc C sR yt �|�}W n. tk r< td||f � t�d� Y nX t|j| j|� d S )Nz2Invalid JSON was used for option %s. Received: %s� ) r �loads� ValueError�print�sys�exit�setattr�values�dest)ZoptionZopt_str�value�parser� r �E/opt/alt/python37/lib/python3.7/site-packages/raven/scripts/runner.py� store_json s r c C s t td�rt�� S d S )N� getloadavg)�hasattr�osr r r r r �get_loadavg s r c C s4 ydd l } W n tk r d S X | �t�� �d S )Nr )�pwd�ImportError�getpwuidr �geteuid)r r r r �get_uid&