ó
Ò:\c           @   s   d  Z  d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m	 Z	 d d l
 m Z d „  Z e d k r‰ e ƒ  n  d S(	   s   Application entry point.iÿÿÿÿN(   t   __version__(   t   parse_arguments(   t   exception_handler(   t   is_conda_availablec          C   sê  t  ƒ  s t j j t j j t j d ƒ ƒ }  d } d j |  ƒ } d j |  ƒ } d } t j d k r d j | | | ƒ } n d j | | | ƒ } | GHd St	 ƒ  } | j
 rÄ t GHt j d ƒ n  | j rJd	 GHd
 d l m } t j j | ƒ rJy# t j | ƒ d GHt j d ƒ WqGt k
 rC} d GH| GHt j d ƒ qGXqJn  | j r¶d GHd
 d l m }	 m }
 |	 ƒ  } |
 ƒ  } | r¡| r¡d GHt j d ƒ q¶d GHt j d ƒ n  d
 d l m } | ƒ  d
 d l m } t | | ƒ S(   s   Main application entry point.i    sj   #
# Please activate the conda root enviroment properly before running the
# `anaconda-navigator` command.
sf   #
# To activate the environment please open a Windows Command Prompt and run:
#
#   {0}\activate root
s_   #
# To activate the environment please open a terminal and run:
#
#   source {0}/activate root
so   #
# For more information please see the documentation at:
#
#   https://docs.anaconda.com/anaconda/navigator/
#t   nts   {}{}{}i   s,   
Anaconda Navigator configuration reset...

iÿÿÿÿ(   t	   CONF_PATHs3   Anaconda Navigator configuration reset successful!
s1   Anaconda Navigator configuration reset failed!!!
s&   
Removing Anaconda Navigator lock...

(   t   remove_lockt
   remove_pids,   Anaconda Navigator lock removal successful!
s*   Anaconda Navigator lock removal failed!!!
(   t
   clean_logs(   t	   start_app(   R   t   ost   patht   abspatht   dirnamet   syst   argvt   formatt   nameR   t   versionR    t   exitt   resett   anaconda_navigator.configR   t   isdirt   shutilt   rmtreet	   Exceptiont
   removelockt   anaconda_navigator.utils.miscR   R   t   anaconda_navigator.utils.logsR   t   anaconda_navigator.app.startR	   R   (   R   t   msgt   win_msgt   unix_msgt	   more_infot	   print_msgt   optionsR   t   eR   R   t   lockt   pidR   R	   (    (    s:   lib/python2.7/site-packages/anaconda_navigator/app/main.pyt   main   sR    	%						t   __main__(   t   __doc__R
   R   R   t   anaconda_navigatorR    t   anaconda_navigator.app.cliR   t   anaconda_navigator.exceptionsR   t   anaconda_navigator.utils.condaR   R'   t   __name__(    (    (    s:   lib/python2.7/site-packages/anaconda_navigator/app/main.pyt   <module>	   s   	O