application.pyc
1 o 2 .��c J � @ s4 d Z ddlZddlmZ ddlZddlZddlZddlZddlm Z ddl 3 mZmZ ddl mZmZ ddlmZmZ ddlmZmZ dd lmZmZ dd 4 lmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ ej%dkr�ej&�'d d�Z(e(dur�e)e e(�d �gZ*ng Z*nddgZ*g Z+ej,�-ej.dd�Z/e/e*vr�e+�0e/� ej&�'d�Z1e1dv r�dZ2ne1�3� dv r�dZ2ne1�3� dv r�dZ2ne�4de1 � i Z5e6ej7e8�r�e5�9ej7� e5�9dddddd�� e8� Z:e6ej;e8�r�e:�9ej;� e:�9e8dd ej<iid!fdd ej=iid"fd#ddd$�id%fd&�� G d'd(� d(e�Z>G d)d#� d#e�Z?dS )*a- 5 An application for IPython. 6 7 All top-level applications should use the classes in this module for 8 handling configuration and creating configurables. 9 10 The job of an :class:`Application` is to create the master configuration 11 object and then create the configurable objects, passing the config to them. 12 � N)�deepcopy)�Path)�Application�catch_config_error)�ConfigFileNotFound�PyFileConfigLoader)�release�crashhandler)� 13 ProfileDir�ProfileDirError)�get_ipython_dir�get_ipython_package_dir)�ensure_dir_exists) �List�Unicode�Type�Bool�Set�Instance� Undefined�default�observe�nt�PROGRAMDATA�ipythonz/usr/local/etc/ipythonz/etc/ipython�etc�IPYTHON_SUPPRESS_CONFIG_ERRORS> � N> �1�trueT> �false�0Fz�Unsupported value for environment variable: 'IPYTHON_SUPPRESS_CONFIG_ERRORS' is set to '%s' which is none of {'0', '1', 'false', 'true', ''}.�ProfileDir.locationzBaseIPythonApplication.profilez"BaseIPythonApplication.ipython_dirzApplication.log_levelz(BaseIPythonApplication.extra_config_file)zprofile-dir�profilezipython-dirz log-level�configr � log_levelz8set log level to logging.DEBUG (maximize logging output)z;set log level to logging.CRITICAL (minimize logging output)�BaseIPythonApplication)�copy_config_files�auto_createz�Initialize profile with default config files. This is equivalent 14 to running `ipython profile create <profile>` prior to startup. 15 )�debug�quiet�initc s"