Hi Mark,
My setup.py doesn't have anything specific for pywin32, cx_Freeze handles
that well. I just have base set to Win32GUI (though maybe you could use
Win32Console if it's only a service) and I have the include_msvcr set to
True.
Yes, arguments passed to the exe are accessible via sys.argv just as in a
normal Python script - in my case the code I shared with you is used as a
module and I have a "main" script that parses the arguments and then passes
them to methods in the class of that module to start things up.
Take care,
-Dan
[image: Dyn logo, Dyn.com] <http://dyn.com/>
<http://twitter.com/dyn> <http://twitter.com/dyninc> [image: Dyn facebook
account] <http://facebook.com/dyn> [image: Dyn LinkedIn account]
<http://linkedin.com/company/dyn>
Dan McCombs / Senior Software Engineer
603 296 1568 @danmccombs <http://twitter.com/danmccombs/>
On Thu, Feb 19, 2015 at 4:16 PM, Mark Grandi <markgra...@gmail.com> wrote:
> Awesome! This might be the thing I need then since there seems to be some
> subtle bug in cx_freeze. How is your setup.py written for
> pywin32/cx_freeze? Do you just not specify anything specific and cx_freeze
> is smart enough to pull in the pywin32 pyd files and all that? Then once
> you generate the exe, it correctly handles the argv parameters and gives it
> to python (and pywin32's win32serviceutil.HandleCommandLine()?
>
> Thanks again!
>
> ~Mark
>
> On Feb 19, 2015, at 2:08 PM, Dan McCombs <dmcco...@dyn.com> wrote:
>
> Hey Mark,
>
> Yes, I freeze with pywin32 (using cx_Freeze) and it runs on systems
> without Python installed - we actually use this for our production Dyn
> Updater client in use by hundreds of thousands of end users without much
> issue.
>
> We ended up going this route rather than the cx_Freeze type because we
> have one executable that runs both the UI and the service, the service is
> just launched via a command line argument to the executable. Though I think
> we end up with less debugging output (console-wise) because of the
> cx_Freeze executable being set to a Win32GUI app.
>
> I vaguely remember playing with the win32service piece of cx_Freeze early
> on, but I didn't get it working and ended up going the pywin32 route for
> the other reasons above anyway.
>
> Take care,
>
> -Dan
>
>
>
> [image: Dyn logo, Dyn.com] <http://dyn.com/>
> <http://twitter.com/dyn> <http://twitter.com/dyninc> [image: Dyn
> facebook account] <http://facebook.com/dyn> [image: Dyn LinkedIn
> account] <http://linkedin.com/company/dyn>
>
> Dan McCombs / Senior Software Engineer
> 603 296 1568 @danmccombs <http://twitter.com/danmccombs/>
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users