jmiguel2902 / blur-dev

Automatically exported from code.google.com/p/blur-dev
0 stars 0 forks source link

sys.modules[__name__] return improper value #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to access current module through sys.modules
2.
3.

What is the expected output? What do you see instead?
current module object

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.
please, run the file in 3dsmax environment

Original issue reported on code.google.com by B.Opatow...@gmail.com on 2 Apr 2012 at 12:42

GoogleCodeExporter commented 9 years ago
example code:

import sys

class maxWindow( object ):
    pass

class mayaWindow( object ):
    pass

getattr(sys.modules[__name__], 'mayaWindow')

Original comment by B.Opatow...@gmail.com on 2 Apr 2012 at 12:43

GoogleCodeExporter commented 9 years ago
I also found out that if not executed in Command Logger it doesn't work from 
Studiomax IDE Editor.

Original comment by B.Opatow...@gmail.com on 2 Apr 2012 at 12:51