IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2011, 3:48:39 PM (15 years ago)
Author:
Serge CHASTEL
Message:

Improved verifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdor/deployment/deploy.py

    r32897 r32904  
    1212
    1313if __name__ == '__main__':
     14    if os.getenv('PYTHONPATH') is not None:
     15        print 'Error: Unset PYTHONPATH environment variable to run this program'
     16        sys.exit(1)
    1417    USAGE = """usage: %prog [options] <ipp site definition file>
    1518
     
    7881    LOGGER.info('Cleaning temporary site definitions')
    7982    os.remove('.tmp_site/IppSite.py')
    80     os.remove('.tmp_site/IppSite.pyc')
     83    try:
     84        os.remove('.tmp_site/IppSite.pyc')
     85    except OSError:
     86        pass # Ignore if not compiled
    8187    os.remove('.tmp_site/__init__.py')
    8288    os.rmdir('.tmp_site')
Note: See TracChangeset for help on using the changeset viewer.