Skip to content Skip to sidebar Skip to footer

Top-level Package Handling With Setuptools (or Another Python Egg Builder)

I am writing a little python app. I want to be able to easily deploy the app. I know that python 2.6 will allow one to execute an egg directly if there is a main module at the egg'

Solution 1:

I believe you can create a subdirectory called toplevel and in your entry point do

import sys
sys.path.insert(0, './toplevel')

Untested, though.

Post a Comment for "Top-level Package Handling With Setuptools (or Another Python Egg Builder)"