🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27393

Re: py2exe i sys.argv

#27393
From: grizz
Date: Thu, 15 Apr 2010 13:28
32 lines
1637 bytes
Parasit Hendersson wrote:

> On Fri, 19 Mar 2010 11:02:02 +0100, grizz 
<grizz@poczta.onet.pl> wrote:
>> I o ile wywołuje to standardowo python test.py -v to 
wszystko
>> działa...
>>
>> Jednak jeżeli program jest "skompilowany" za pomocą py2exe 
to
>> nie przyjmuje argumentów z linii poleceń  - jakieś 
pomysły?
> 
> A jak go kompilujesz?
> Masz jakiś setup? Jeśli tak to pokaż.
> 
from distutils.core import setup
import py2exe

setup(windows=[{"script" : "mirlight_gui.py", 
"icon_resources": [(0, 
"mirlight.ico")]}],zipfile=None,options={"py2exe":
{"includes":["sip"],"bundle_files": 1}})

Tutaj cały projekt: http://github.com/grizz-pl/mirlight

-- 
::  Witek Firlej  ::
Voiceless it cries, Wingless flutters, Toothless bites, 
Mouthless mutters.
:: http://grizz.pl :: http://galeria.firlej.org :: jid: 
grizz//jabster.pl ::
Technical Details
Message-ID: <hq7493$i4m$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <hnvi2q$cl9$1@news.onet.pl> <hpvcv9$j5$1@news2.ipartners.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: grizz <grizz@poczta.onet.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: py2exe i sys.argv
Followup-To: pl.comp.lang.python
Date: Thu, 15 Apr 2010 15:28:03 +0200
Organization: http://onet.pl
Lines: 33
Message-ID: <hq7493$i4m$1@news.onet.pl>
References: <hnvi2q$cl9$1@news.onet.pl> <hpvcv9$j5$1@news2.ipartners.pl>
NNTP-Posting-Host: 77-236-8-37.home.aster.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1271338083 18582 77.236.8.37 (15 Apr 2010 13:28:03 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Thu, 15 Apr 2010 13:28:03 +0000 (UTC)
User-Agent: KNode/4.4.2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit