have u tried using setuptools and distutils <div><br></div><div>they are used for python package distributions <br><br><div class="gmail_quote">On Thu, Dec 9, 2010 at 5:02 PM, mark jason <span dir="ltr"><<a href="mailto:markjason72@gmail.com">markjason72@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi,<br>
I have created a python app in eclipse pydev .The app is structured as<br>
below..<br>
<br>
mypackage<br>
  |______ __init__.py<br>
  |______ driver.py<br>
  |______ helper.py<br>
  |______ utils.py<br>
<br>
The driver.py has the main program.I have added if<br>
__name__=="__main__" block in  the<br>
<br>
driver.py and pydev's run configuration has the following values,<br>
Project : myproject<br>
Main Module :${workspace_loc:myproject/src/mypackage/driver.py}<br>
 So,the app runs in pydev without any problems.<br>
<br>
Then I thought of providing the modules as a zip file.So I created a<br>
zip file containing<br>
mypackage directory.The user should be able to unzip the zip file and<br>
run the application from command line .<br>
<br>
What bothers me is that ,the user will have to cd to mypackage folder<br>
and run python driver.py..<br>
This doesn't look like the proper way..<br>
I also thought of  putting the driver,helper,utils modules in a folder<br>
called mycode and zipping it without the __init__.py file .<br>
I am not sure which is the correct way.<br>
Can somebody advise me as to how I can package it better?<br>
<br>
thanks,<br>
<br>
mark<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Nitin Pawar<br><br>
</div>