Skip to content

Comment doesn't display package version #5

@henniss

Description

@henniss

When I write a Code128 barcode in Python3, I get the following:

<svg height="23.000mm" version="1.1" width="29.000mm" xmlns="http://www.w3.org/2000/svg">
    <!--Autogenerated with python-barcode <module 'barcode.version' from '[...]/lib/python3.6/site-packages/barcode/version.py'>-->
    <g id="barcode_group">...

It should probably be more like

<svg height="23.000mm" version="1.1" width="29.000mm" xmlns="http://www.w3.org/2000/svg">
    <!--Autogenerated with python-barcode v0.8.1-->
    <g id="barcode_group">...

The problem seems to be that from barcode import version on line 9 of barcode.writer imports the barcode.version module, rather than importing the version object from barcode.__init__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions