Need to call maya using a subprocess i.e.
subprocess.check_call([maya_bin] + sys.argv[1:], env=os.environ)
and environment variable being passed like above. Problem is
QT_PLUGIN_PATH env when queried inside maya at runtime shows nothing.
So how does one make all environment variables accessible within maya
Before calling maya ,
QT_PLUGIN_PATH = '/fb/NHI/fifth/qt/4.8.5_5.6.1/4.8.5/Linux/plugins:/fb/NHI/fifth/maestro/plugins:/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins'
After maya is initiated, its only,
QT_PLUGIN_PATH = '/fb/NHI/fifth/qt/4.8.5_5.6.1/4.8.5/Linux/plugins'
it should be
'/fb/NHI/fifth/qt/4.8.5_5.6.1/4.8.5/Linux/plugins:/fb/NHI/fifth/maestro/plugins:/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins'
How is it possible ?