Comment #3 on issue 1287 by fabian.seoane: os imported by sympy
http://code.google.com/p/sympy/issues/detail?id=1287
os is imported globally to compute SYMPY_DEBUG. I don't know if this hack
solves the
problem:
diff --git a/sympy/__init__.py b/sympy/__init__.py
index cbea406..4a605fa 100644
--- a/sympy/__init__.py
+++ b/sympy/__init__.py
@@ -12,8 +12,13 @@
__version__ = "0.6.3-hg"
-import os
-SYMPY_DEBUG = eval(os.getenv('SYMPY_DEBUG', 'False'))
+
+
+def __sympy_debug():
+ # helper function so we don't import os globally
+ import os
+ return os.getenv('SYMPY_DEBUG', 'False')
+SYMPY_DEBUG = __sympy_debug()
import symbol as stdlib_symbol
from sympy.core import *
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---