Open documentation via Python script from egg file in Windows -


i have written setup.py python project. in python script documentation (e.g. html) can opened script. documentation file added in setup.py data_files (so goes egg). code on ubuntu, smooth when testing on windows, not work. seems egg not accessible (unzipped) opening files in windows. code in setup.py is:

   setup(name='name',       version="000",       packages=[],       data_files=[('documentation', doclist),                   ('doxygen' ,      doxygenlist),                   ('testcase',      testcaselist),                   ('testscripts',   testscriptslist)],       description='ooo',       url='none',       author='i',       author_email='me@here.com',       scripts=scriptlist,) 

the code in python script opens documentation:

if (sys.argv[1] == "-man"):     filename = os.path.join(documentationabspath, 'documentation.html')     webbrowser.open(filename)     sys.exit() 

ok apparently no how it! should use egg in windows used in ubuntu? read 1 can use zipfile module open egg. however, not interested in accessing files inner content themselves, open html default web browser.

thanks in advance!


Comments