At Thursday 17/8/2006 16:42, Thomas W wrote:
Is it impossible to compile a script using py2exe and pass selected
items in Explorer to my script? It works fine when called on the
command line so it might be something related to Explorer but I'm
completly lost.
Yes, it is related to Explorer -so
I entered the following simple program, compiled with py2exe (2.4)
and ran it the way you describe with two files selected and it
did what you said (e.g. only shows ays.argv[0] and sys.argv[1]):
import sys
print sys.argv
x=raw_input('Press return to continue')
Under 2.5 it didn't work at all (not
I've created a simple script like so :
import sys
import wx
app = wx.PySimpleApp()
dlg = wx.MessageDialog(None, "%s" % sys.argv, 'A Message Box',
wx.YES_NO | wx.ICON_QUESTION)
retCode = dlg.ShowModal()
app.MainLoop()
If I run this on the command line like
python testcmd.py /somefile.ext /another