Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/mixins/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/mixins/

Reply

Author limodou
Full name limodou
Date 2005-02-22 21:23:57 PST
Message User: limodou
Date: 05/02/22 21:23:57

Modified:
 /newedit/src/mixins/
  Import.py, mPyRun.py

Log:
 run pythonw

File Changes:

Directory: /newedit/src/mixins/
===============================

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.72​&r2=1.73
Delta lines: +8 -3
-------------------
--- Import.py 19 Feb 2005 09:53:54 -0000 1.72
+++ Import.py 23 Feb 2005 05:23:57 -0000 1.73
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Import.py,v 1.72 2005/02/19 09:53:54 limodou Exp $
+# $Id: Import.py,v 1.73 2005/02/23 05:23:57 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -3561,13 +3561,18 @@
     args = win.document.args.re​place('$path', os.path.dirname(win.​document.filename))
     args = args.replace('$file', win.document.filename)
     ext = os.path.splitext(win​.document.filename)[​1].lower()
- if ext == '.pyw':
         i_main, i_ext = os.path.splitext(interpreter)
- command = i_main + 'w' + i_ext + ' -u "%s" %s' % (win.document.filename, args)
+ if ext == '.pyw':
+ if not i_main.endswith('w'):
+ i_main += 'w'
+ command = i_main + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = True
     else:
- command = interpreter + ' -u "%s" %s' % (win.document.filename, args)
+ if i_main.endswith('w'):
+ i_main = i_main[:-1]
+ command = i_main + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = False
+ print command
     #chanage current path to filename's dirname
     path = os.path.dirname(win.​document.filename)
     os.chdir(common.enco​de_string(path))

File [changed]: mPyRun.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​PyRun.py?r1=1.8&​r2=1.9
Delta lines: +8 -4
-------------------
--- mPyRun.py 6 Feb 2005 15:38:25 -0000 1.8
+++ mPyRun.py 23 Feb 2005 05:23:57 -0000 1.9
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mPyRun.py,v 1.8 2005/02/06 15:38:25 limodou Exp $
+# $Id: mPyRun.py,v 1.9 2005/02/23 05:23:57 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -73,12 +73,16 @@
     args = win.document.args.re​place('$path', os.path.dirname(win.​document.filename))
     args = args.replace('$file', win.document.filename)
     ext = os.path.splitext(win​.document.filename)[​1].lower()
- if ext == '.pyw':
         i_main, i_ext = os.path.splitext(interpreter)
- command = i_main + 'w' + i_ext + ' -u "%s" %s' % (win.document.filename, args)
+ if ext == '.pyw':
+ if not i_main.endswith('w'):
+ i_main += 'w'
+ command = i_main + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = True
     else:
- command = interpreter + ' -u "%s" %s' % (win.document.filename, args)
+ if i_main.endswith('w'):
+ i_main = i_main[:-1]
+ command = i_main + i_ext + ' -u "%s" %s' % (win.document.filename, args)
         guiflag = False
     #chanage current path to filename's dirname
     path = os.path.dirname(win.​document.filename)




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/mixins/ limodou limodou 2005-02-22 21:23:57 PST
Messages per page: