[pygccxml-commit] SF.net SVN: pygccxml:[1518] pyplusplus_dev/examples/pyeasybmp_dev/ environment.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-01-01 19:39:32
|
Revision: 1518 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1518&view=rev Author: roman_yakovenko Date: 2009-01-01 19:39:29 +0000 (Thu, 01 Jan 2009) Log Message: ----------- adding environment Added Paths: ----------- pyplusplus_dev/examples/pyeasybmp_dev/environment.py Added: pyplusplus_dev/examples/pyeasybmp_dev/environment.py =================================================================== --- pyplusplus_dev/examples/pyeasybmp_dev/environment.py (rev 0) +++ pyplusplus_dev/examples/pyeasybmp_dev/environment.py 2009-01-01 19:39:29 UTC (rev 1518) @@ -0,0 +1,28 @@ +#! /usr/bin/python +# Copyright 2004-2008 Roman Yakovenko. +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import os +import sys + +this_module_dir_path = os.path.abspath ( os.path.dirname( sys.modules[__name__].__file__) ) +project_root = os.path.abspath( os.path.join( this_module_dir_path, '..','..', '..' ) ) +print project_root +complete_path = lambda *args: os.path.join( project_root, *args ) + +class settings: + module_name = 'easybmp' + gccxml_path = complete_path( 'gccxml_bin', 'v09', sys.platform, 'bin' ) + pygccxml_path = complete_path( 'pygccxml_dev' ) + pyplusplus_path = complete_path( 'pyplusplus_dev' ) + easybmp_path = complete_path( 'pyplusplus_dev', 'examples', 'pyeasybmp_dev', 'easybmp' ) + working_dir = easybmp_path + + @staticmethod + def setup_environment(): + sys.path.append( settings.pygccxml_path ) + sys.path.append( settings.pyplusplus_path ) + +settings.setup_environment() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |