Re: Python idea/proposal to assist in single-archive python applications

2008-12-07 Thread Brian Allen Vanderburg II
[EMAIL PROTECTED] wrote: Why not use pkgutil.get_data()? Provided you remember to put your zip file on PYTHONPATH you can already run modules directly out of a zipfile (Python 2.5 and later).If your zipfile contains __main__.py then with Python 2.6 or later you can run it directly: just spec

Re: Python idea/proposal to assist in single-archive python applications

2008-12-07 Thread Duncan Booth
Brian Allen Vanderburg II <[EMAIL PROTECTED]> wrote: > In addition it is needed to be able to open a file just as easily > whether that file is in the archive or not. Assuming that a datafile in > an application may be located relative to the '__file__' attributes, the > following will not wor

Python idea/proposal to assist in single-archive python applications

2008-12-07 Thread Brian Allen Vanderburg II
Python Community The following is just an idea that I considered that may be helpful in creating an application in a single archive easier and with less code. Such an application would be similar to jar files for Java. First, the application and all data files should be able to run either e