[pygccxml-commit] SF.net SVN: pygccxml: [36] pyplusplus_dev/environment.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-05-02 04:29:49
|
Revision: 36 Author: roman_yakovenko Date: 2006-05-01 21:29:42 -0700 (Mon, 01 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=36&view=rev Log Message: ----------- Improving a little location-guess algorithm. Adding few compilation flags to msvc compiler Modified Paths: -------------- pyplusplus_dev/environment.py Modified: pyplusplus_dev/environment.py =================================================================== --- pyplusplus_dev/environment.py 2006-05-02 04:27:55 UTC (rev 35) +++ pyplusplus_dev/environment.py 2006-05-02 04:29:42 UTC (rev 36) @@ -26,7 +26,7 @@ if sys.platform == 'win32': scons.suffix = '.dll' - scons.ccflags = ['/MD', '/EHsc', '/GR' ] + scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope' ] boost.libs = 'd:/boost_cvs/bin' boost.include = 'd:/boost_cvs' python.libs = 'c:/python/libs' @@ -46,6 +46,10 @@ environment_path_helper.raise_error() except Exception, error: _my_path = os.path.abspath( os.path.split( sys.exc_traceback.tb_frame.f_code.co_filename )[0] ) + if not os.path.exists( os.path.join( _my_path, 'environment.py' ) ): + #try another guess + if sys.modules.has_key('environment'): + _my_path = os.path.split( sys.modules['environment'].__file__ )[0] try: import pygccxml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |