Revision: 1345
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1345&view=rev
Author: roman_yakovenko
Date: 2008-06-23 14:47:49 -0700 (Mon, 23 Jun 2008)
Log Message:
-----------
adding gccxml executable to the dialog, if it runs from the source tree
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/gui/ui.py
Modified: pyplusplus_dev/pyplusplus/gui/ui.py
===================================================================
--- pyplusplus_dev/pyplusplus/gui/ui.py 2008-06-23 21:46:49 UTC (rev 1344)
+++ pyplusplus_dev/pyplusplus/gui/ui.py 2008-06-23 21:47:49 UTC (rev 1345)
@@ -10,6 +10,7 @@
"""
import os
+import sys
import time
import Tkinter
import tkFileDialog
@@ -112,6 +113,13 @@
temp.grid( row=10, column=1, columnspan=2, sticky=Tkinter.NE + Tkinter.W)
map( lambda i: self.rowconfigure( i, weight=1 ), range(11) )
+
+ this_module_dir_path = os.path.abspath ( os.path.dirname( sys.modules[__name__].__file__) )
+ this_module_dir_path = this_module_dir_path.replace( '\\', '/' )
+ this_module_dir_path = this_module_dir_path.lower()
+ if this_module_dir_path.endswith( '/sources/pyplusplus_dev/pyplusplus/gui' ):
+ gccxml_09_path = os.path.join( this_module_dir_path, '..', '..', '..', 'gccxml_bin', 'v09', sys.platform, 'bin' )
+ self._gccxml_location.insert( 0, gccxml_09_path )
def _select_gccxml_executable( self ):
file_name = tkFileDialog.askopenfilename()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|