title: py2exe and sqlalchemy-migrate
body: <p>I'm using python 2.6, sqlalchemy 0.6 for a tiny desktop application. Also i'm using py2exe and sqlalchemy-migrate and i'm trying to integrate migrate inside the exe. In this way when the user starts the application the database gets automatically upgraded.</p>
  
  <p>If i try to use migrate in my eclipse project it works well but i want to release the project itself in an exe using py2exe. Unfortunately when i start the exe i got the error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "sagra.py", line 7, in &lt;module&gt;
  File "guiutil.pyc", line 3, in &lt;module&gt;
  File "bo.pyc", line 4, in &lt;module&gt;
  File "database.pyc", line 26, in &lt;module&gt;
  File "&lt;string&gt;", line 2, in version_control
  File "migrate\versioning\util\__init__.pyc", line 160, in with_engine
  File "migrate\versioning\api.pyc", line 248, in version_control
  File "migrate\versioning\schema.pyc", line 128, in create
  File "migrate\versioning\repository.pyc", line 76, in __init__
  File "migrate\versioning\repository.pyc", line 97, in verify
  migrate.versioning.exceptions.InvalidRepositoryError: db_repository
  </code></pre>
  
  <p>but the directory db_repository and the migration scripts are correctly inside the "library.zip" used by py2exe to incorporate all the python resources used by my software.</p>
  
  <p>It seems sqlalchemy-migrate doesn't search inside the zip for the directory of the repository.</p>
  
  <p>Here the problem (repository.py):</p>
  
  <pre><code>def verify(cls, path):
  """
  Ensure the target path is a valid repository.
  
  :raises: :exc:`InvalidRepositoryError &lt;migrate.versioning.exceptions.InvalidRepositoryError&gt;`
  """
  # Ensure the existence of required files
  try:
      cls.require_found(path)
      cls.require_found(os.path.join(path, cls._config))
      cls.require_found(os.path.join(path, cls._versions))
  except exceptions.PathNotFoundError, e:
      raise exceptions.InvalidRepositoryError(path) 
  </code></pre>
  
  <p>How to read the repository from a zip ?
  Is there anyone who have tried (and succeded) to use sqlalchemy-migrate inside the exe generated by py2exe ? </p>
  
  <p>Thanks for any help</p>