Re: [Distutils] VBScript puzzle

2010-03-22 Thread Martin v. Löwis
> Looks like we need JScript (what can that do, though?) or VBScript. Not sure whether users could accept writing JScript or VBScript for bdist_msi, so (atleast for bdist_msi), I would like to either support Python pre-install scripts, or not support pre-install scripts at all. The question is wh

Re: [Distutils] VBScript puzzle

2010-03-23 Thread Jess Austin
On Mon, 22 Mar 2010 at 21:25:55, "Martin v. L?wis" wrote: > As this might be an interesting puzzle to solve, I'd like to pose it to > the entire distutils-sig readership. So here is the problem again: > > As a batch file, my attempt at having a batch file that is also a > Python script was to wri

Re: [Distutils] VBScript puzzle

2010-03-23 Thread Martin v. Löwis
> HTH, That's really cute! Thanks a lot, Martin ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

Re: [Distutils] VBScript puzzle

2010-03-23 Thread Paul Moore
On 23 March 2010 20:57, Jess Austin wrote: > I couldn't get this to work as VBScript (that requires too many line > continuation characters), but I think the following JScript should > work. You are a deeply disturbed person :-) That's seriously neat, in a scary sort of way... Paul.

Re: [Distutils] VBScript puzzle

2010-03-23 Thread Jess Austin
On Tue, Mar 23, 2010 at 5:21 PM, "Martin v. Löwis" wrote: > That's really cute! Glad you like it! I wrote another version, this time using WshShell.Exec() rather than WshShell.Run(). This way everything happens in the same terminal, although from random googling it seems that Exec() may be rath

Re: [Distutils] VBScript puzzle

2010-04-26 Thread Bill Janssen
Jess Austin wrote: > On Mon, 22 Mar 2010 at 21:25:55, "Martin v. L?wis" > wrote: > > As this might be an interesting puzzle to solve, I'd like to pose it to > > the entire distutils-sig readership. So here is the problem again: > > > > As a batch file, my attempt at having a batch file that is

Re: [Distutils] VBScript puzzle

2010-04-26 Thread Bill Janssen
Jess Austin wrote: > C:\>cscript bdist.js "Python26\python.exe" > > > Here's the script: > > > 4 // 3; ''' > ; > if (WScript.Arguments.Count() < 1) > WScript.Echo("usage: " + WScript.ScriptName + " "); > else > WScript.CreateObject("WScript.Shell").Run(WScript.Arguments.Item(0) + " " + >