X-Git-Url: http://git.salome-platform.org/gitweb/?p=tools%2Fsat.git;a=blobdiff_plain;f=commands%2Ftemplate.py;fp=commands%2Ftemplate.py;h=cdc1c8165e93d3991457027f88c58ea051c5500c;hp=e4ddc59677672ec65b8130cd0f57eff046c6248d;hb=9d976c8e73cbccd8326e2046c6d7b4b86b974b93;hpb=076787ab22f087dc3a9a0212e0b09227b250bf32 diff --git a/commands/template.py b/commands/template.py index e4ddc59..cdc1c81 100644 --- a/commands/template.py +++ b/commands/template.py @@ -35,7 +35,7 @@ except NameError: # Python 2/3 compatibility for execfile function try: execfile -except: +except Exception: def execfile(somefile, global_vars, local_vars): with open(somefile) as f: code = compile(f.read(), somefile, 'exec')