Michele Petrazzo wrote:
> I want to redistribute the library that I create.
> I create a project, its setup.py that when launched copy all files into
> the "site-packages/library" directory. And here it's all ok.
> When I call my library with:
> 
> import library
> library.class()
> 
> I want that my library know where are its real path
> (site-packages/library/), because it has to load a data file present
> into a subpackage directory (like site-package/library/data/file.dat),

http://peak.telecommunity.com/DevCenter/PkgResources

-- 
Robert Kern
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to