Dear all,
I encountered the same problem as Katsu, but is there no answer since August?
I noticed that there is a unittest folder in C:\Program Files (x86)\Rhinoceros 5\Plug-ins\IronPython\Lib
But somehow, when I call my standard line
if __name__ == '__main__':
I also get the error
Message: No module named __main__
Anybody with an idea?
Kind regards
Filip Rooms
Continuing the discussion from Error when using unittest module in PythonScript:
import unittest
class MyClassTestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testFooMethod(self):
pass
if __name__ == "__main__":
unittest.main()
---
Message: No module named __main__
Traceback:
line 75, in __init__, "C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\IronPython\Lib\unittest\main.py"