<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Není to tohle?:<br>
<br>
<h2><a name="specifying-additional-files">Specifying additional files</a></h2>
<p>Some applications need additional files at runtime, like
configuration
files, fonts, or bitmaps.</p>
<p><strong>py2exe</strong> can copy these files into subdirectories of <tt
 class="literal"><span class="pre">dist</span></tt> if they
are specified in the setup script with the <tt class="literal"><span
 class="pre">data_files</span></tt>
option. <tt class="literal"><span class="pre">data_files</span></tt>
should contain a sequence of <tt class="literal"><span class="pre">(target-dir,</span>
<span class="pre">files)</span></tt> tuples, where files is a sequence
of files to be copied.</p>
<p>Here's an example:</p>
<pre class="literal-block"># setup.py
from distutils.core import setup
import glob
import py2exe

setup(console=["myscript.py"],
      data_files=[("bitmaps",
                   ["bm/large.gif", "bm/small.gif"]),
                  ("fonts",
                   glob.glob("fonts\\*.fnt"))],
)
</pre>
<pre class="moz-signature" cols="72">Nebo zkus Installer: <a class="moz-txt-link-freetext" href="http://py.vaults.ca/apyllo.py?find=installer">http://py.vaults.ca/apyllo.py?find=installer</a>


gen2n  
ICQ 176015287

</pre>
<br>
<br>
Jindrich Mrazek napsal(a):
<blockquote cite="midc11c88c84aaf314d8a889fd0d1ef4352@mail.ste.cz"
 type="cite">
  <pre wrap="">Omlouvám se za začátečnický dotaz.
        Vytvořil jsem modul, který upravuje JPG obrázky a vepisuje do
nich aktuální datum. Když ho spustím přes PythonWin(OS W2000), všechno
proběhne bez problémů.
        Chtěl jsem z tohoto modulu udělat pomocí py2exe i "exe" soubor.
Po jeho spuštění mi to ale hlásí že nemůže identifikovat image file a
chybu vstupu (exceptions.IOError).
        Nevíte, kde by mohl být problém? U jiných modulů mi to přes
py2exe proběhne bez problémů.

Děkuji

J.MRÁZEK



_______________________________________________
Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python@py.cz">Python@py.cz</a>
<a class="moz-txt-link-freetext" href="http://hugo.zagamma.cz/mailman/listinfo/python">http://hugo.zagamma.cz/mailman/listinfo/python</a>

  </pre>
</blockquote>
</body>
</html>