Message205857
| Author |
sbt |
| Recipients |
Olivier.Grisel, brett.cannon, eric.snow, ncoghlan, pitrou, sbt |
| Date |
2013年12月10日.20:39:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1386707979.6.0.907963286148.issue19946@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I guess this is a case where we should not be trying to import the main module. The code for determining the path of the main module (if any) is rather crufty.
What is sys.modules['__main__'] and sys.modules['__main__'].__file__ if you run under nose? |
|