Changeset 11:91b259fc35a3 in livinglogic.python.pycoco

Show
Ignore:
Timestamp:
10/01/06 23:23:10 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use new way of accessing coverage.css suggested by PJE.

Fix typo.

Files:
1 added
1 removed
3 modified

Legend:

Unmodified
Added
Removed
  • MANIFEST.in

    r2 r11  
    1 include src/coverage.css 
     1include src/pycoco.egg-info/coverage.css 
  • setup.py

    r4 r11  
    5959    package_dir={"": "src"}, 
    6060    py_modules=["pycoco"], 
    61     package_data={ 
    62         "": ["*.css"], 
    63     } 
    6461) 
    6562 
  • src/pycoco.py

    r10 r11  
    88    css = open(os.path.join(__file__, "coverage.css"), "rb").read() 
    99else: 
    10     css = pkg_resources.resource_string(__name__, "coverage.css") 
     10    css = pkg_resources.get_distribution("pycoco").get_metadata("coverage.css") 
    1111 
    1212 
     
    444444    p.add_option("-o", "--outputdir", dest="outputdir", help="Directory where to put the HTML files", default="~/pycoco") 
    445445    (options, args) = p.parse_args(args) 
    446     if len(args) != =: 
     446    if len(args) != 0: 
    447447        p.error("incorrect number of arguments") 
    448448        return 1