Skip to content

Instantly share code, notes, and snippets.

@wence-
Created February 3, 2015 11:57
Show Gist options
  • Select an option

  • Save wence-/21eb7701925d662942f9 to your computer and use it in GitHub Desktop.

Select an option

Save wence-/21eb7701925d662942f9 to your computer and use it in GitHub Desktop.
diff --git a/pyop2/compilation.py b/pyop2/compilation.py
index 1a9db26..7e7036a 100644
--- a/pyop2/compilation.py
+++ b/pyop2/compilation.py
@@ -102,6 +102,8 @@ class Compiler(object):
logfile = os.path.join(cachedir, "%s.log" % basename)
errfile = os.path.join(cachedir, "%s.err" % basename)
with progress(INFO, 'Compiling wrapper'):
+ import traceback
+ traceback.print_stack()
with file(cname, "w") as f:
f.write(src)
# Compiler also links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment