You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/07 11:30:51 UTC
svn commit: r209577 - /gump/branches/Gump3/pygump/python/main.py
Author: leosimons
Date: Thu Jul 7 02:30:49 2005
New Revision: 209577
URL: http://svn.apache.org/viewcvs?rev=209577&view=rev
Log:
Automatically install the db stub for wing if we can.
Modified:
gump/branches/Gump3/pygump/python/main.py
Modified: gump/branches/Gump3/pygump/python/main.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/main.py?rev=209577&r1=209576&r2=209577&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/main.py (original)
+++ gump/branches/Gump3/pygump/python/main.py Thu Jul 7 02:30:49 2005
@@ -436,12 +436,25 @@
# check for debug info
if options.attach_wing:
+ # look for WINGHOME
try:
winghome = os.environ["WINGHOME"]
except:
print "ERROR: debug environment not set up properly. Please set WINGHOME to the"
print " directory containing your Wing IDE installation."
sys.exit(2)
+
+ # Copy over the dbstub if it isn't there already
+ try:
+ wingdbstubpath = os.path.join(options.homedir,"pygump","python","wingdbstub.py")
+ if not os.path.isfile(wingdbstubpath):
+ pathwithinwing = os.path.join(winghome, "wingdbstub.py")
+ import shutil
+ shutil.copyfile(pathwithinwing, wingdbstubpath)
+ except:
+ print "ERROR: debug environment not set up properly. Please add the windbstub.py"
+ print " from WINGHOME to"
+ print " %s" % wingdbstubpath
# create logger
log = _Logger(options.logdir)