mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
ca856f7603
Support of reading LGR dimensions Close file handles between access to files, keep ERT file-related cache to speed up reading of many files multiple times p4#: 21477
21 lines
369 B
Python
21 lines
369 B
Python
#!/usr/bin/env python
|
|
import py_compile
|
|
import os
|
|
import sys
|
|
import os.path
|
|
|
|
# Small 'python compiler' used in the build system for ert.
|
|
|
|
for file in sys.argv[1:]:
|
|
try:
|
|
py_compile.compile( file , doraise = True )
|
|
except Exception,error:
|
|
sys.exit("py_compile(%s) failed:%s" % (file , error))
|
|
|
|
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
|