mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Fix cygwin (with python 2.6) compilation problems.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
4a57050380
commit
3ae01cf619
2 changed files with 11 additions and 8 deletions
|
@ -1617,8 +1617,11 @@ PYG_GLOBALS = { 'UINT' : UINT, 'BOOL' : BOOL, 'DOUBLE' : DOUBLE, 'STRING' : STRI
|
|||
'def_module_params' : def_module_params }
|
||||
|
||||
def _execfile(file, globals=globals(), locals=locals()):
|
||||
with open(file, "r") as fh:
|
||||
exec(fh.read()+"\n", globals, locals)
|
||||
if sys.version < "2.7":
|
||||
execfile(file, globals, locals)
|
||||
else:
|
||||
with open(file, "r") as fh:
|
||||
exec(fh.read()+"\n", globals, locals)
|
||||
|
||||
# Execute python auxiliary scripts that generate extra code for Z3.
|
||||
def exec_pyg_scripts():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue