- QFileInfo i( argv[ 0 ] );
- if( i.exists( ) )
- {
- this->m_ExecutionPath = i.canonicalPath( ).toStdString( );
- try { this->m_Interface.AddEnvironments( this->m_ExecutionPath ); }
- catch( ... ) { }
- try { this->m_Interface.OpenEnvironments( this->m_ExecutionPath ); }
- catch( ... ) { }
- try { this->m_Interface.SaveEnvironments( this->m_ExecutionPath ); }
- catch( ... ) { }
- }
- else
- this->m_ExecutionPath = "";
+ QFileInfo e_path( argv[ 0 ] );
+ QDir r_path( "." );
+ this->m_RunPath = r_path.canonicalPath( ).toStdString( );
+ std::stringstream paths;
+ paths
+ << e_path.canonicalPath( ).toStdString( )
+ << cpPlugins_SEPARATOR
+ << this->m_RunPath;
+
+ try { this->m_Interface.AddEnvironments( this->m_RunPath ); }
+ catch( ... ) { }
+ try { this->m_Interface.OpenEnvironments( this->m_RunPath ); }
+ catch( ... ) { }
+ try { this->m_Interface.SaveEnvironments( this->m_RunPath ); }
+ catch( ... ) { }