From: Jimmy R. <ji...@re...> - 2005-11-11 13:00:19
|
S.Holmgren wrote: > How to autostart my created py2exe file by drag and drop a "file" on it > instead of typing an argumet in the command line? I tried to get the > droped file with sys.args but no luck. > ... or is this some configuration in windows? modify some regedit > data... maybe? It's actually sys.argv that you want. As long as you have .py associated with Python, it even works to drag file(s) onto your .py script for testing before building with py2exe. I seem to recall that Windows has some limit on how many files it will pass on the command line like this (for any language, not just Python). Perhaps it's a limit on the maximum length the command line can have? Jimmy |