/[escript]/branches/complex/scripts/py_comp.py
ViewVC logotype

Annotation of /branches/complex/scripts/py_comp.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5866 - (hide annotations)
Wed Jan 13 03:13:08 2016 UTC (3 years, 7 months ago) by jfenwick
File MIME type: text/x-python
File size: 871 byte(s)
Trying again to branch
1 sshaw 5707
2     ##############################################################################
3     #
4 jfenwick 5863 # Copyright (c) 2003-2016 by The University of Queensland
5 sshaw 5707 # http://www.uq.edu.au
6     #
7     # Primary Business: Queensland, Australia
8     # Licensed under the Open Software License version 3.0
9     # http://www.opensource.org/licenses/osl-3.0.php
10     #
11     # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     # Development 2012-2013 by School of Earth Sciences
13     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14     #
15     ##############################################################################
16 sshaw 5706 from __future__ import print_function, division
17 jfenwick 3851 import py_compile
18     from sys import *
19    
20     if len(argv)!=3:
21     print("%s source dest"%argv[0], file=stderr)
22     exit(2)
23     try:
24     py_compile.compile(argv[1], argv[2], argv[1], True)
25     except Exception as e:
26     print(e.args)
27 jfenwick 3892 exit(1)
28 jfenwick 3851

  ViewVC Help
Powered by ViewVC 1.1.26