ó
üR‹_c           @   s  d  Z  d d l Z d d l m Z d d l m Z d d l m Z d e j d <e j j	 d ƒ Z
 e
 d k r¹ e j j d	 d
 d d ƒ Z
 e j j e
 ƒ s¹ d Z e e e
 f ƒ ‚ q¹ n  e j j e
 ƒ Z
 y e e
 ƒ Wn e k
 rì n Xe d e
 ƒ Z d S(   sm   
Runs the Application. This script can be called by any wsgi runner that looks
for an 'application' variable
iÿÿÿÿN(   t
   fileConfig(   t   NoSectionError(   t   loadapps   /tmp/python-eggst   PYTHON_EGG_CACHEt   SYNCSTORAGE_INI_FILEs   /etcs   mozilla-servicest   syncstorages   production.inisb   Config file %s not found; please set SYNCSTORAGE_INI_FILE to the path of your desired config file.s	   config:%s(   t   __doc__t   ost   logging.configR    t   ConfigParserR   t   paste.deployR   t   environt   gett   ini_filet   Nonet   patht   joint   existst   msgt   RuntimeErrort   abspatht   application(    (    (    sH   /var/www/syncserver/local/lib/python2.7/site-packages/syncstorage/run.pyt   <module>   s$   