py2exe: Distributing .py files

Przemysław Gawroński P.Gawronski at obop.pl
Mon Dec 16 08:55:48 EST 2002


> Hi!
> 
> Is it possible to create an executeable
> with py2exe which calls a python file,
> instead of building it into the exe file?
> 
> Background: My customer should be able to
> change the python file. But he can't
> if the script is build into an exe.
> 
> I just need a "simple" exe which calls the
> script "foo.py". The exe file and the python
> script will be sent to the customer.

Try the 'execfile' statment.

In your main application you can do something like this:

execfile( "yourscript.py", globals, locals )

Hope that helps

Przemek
-- 
Przemyslaw G. Gawronski
Informatyk, Dział Telemetrii, Telemetria, TNS OBOP
tel.: +48 22 648 2044 (-46), fax: +48 22 644 9947
e-mail: P.Gawronski at obop.pl
http://www.obop.pl/, http://www.tnsofres.com


***
Czy wiecie Państwo jaka jest różnica między 
pracownikiem usatysfakcjonowanym, a pracownikiem przywiązanym 
do firmy oraz wykonywanej pracy? 
Jeśli nie - koniecznie zajrzyjcie na stronę: 
http://www.obop.pl/rd/GEC

_______________________________________________________________________
Uwaga: Ta wiadomosc poczty elektronicznej przeznaczona jest wylacznie
dla osoby/firmy wymienionej powyzej. Tresc wiadomosci jest poufna i
prawnie chroniona. Jesli - przez pomylke - otrzymali Panstwo te
wiadomosc, uprzejmie prosimy (1) niezwlocznie skontaktowac sie z nasza
firma, (2) zniszczyc wiadomosc i wszystkie zalaczniki oraz (3) upewnic
sie, ze jej tresc nie zostala ujawniona ani wykorzystana.
Dziekujemy. TNS OBOP 
--- 
Note: This electronic mail message is for the use of the person 
or company named above only. This message is CONFIDENTIAL and may be
LEGALLY PRIVILEGED. If you have received this message in error, please
contact us immediately, destroy the message and all the attachments
received, ensure that their contents are not disclosed or used.




More information about the Python-list mailing list