/[escript]/trunk/scripts/py_comp.py
ViewVC logotype

Contents of /trunk/scripts/py_comp.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5707 - (show annotations)
Mon Jun 29 03:59:06 2015 UTC (3 years, 6 months ago) by sshaw
File MIME type: text/x-python
File size: 871 byte(s)
adding copyright headers to files without copyright info, moved header to top of file in some cases where it wasn't
1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2015 by The University of Queensland
5 # 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 from __future__ import print_function, division
17 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 exit(1)
28

  ViewVC Help
Powered by ViewVC 1.1.26