Skip to content

Commit

Permalink
fix ldraw-license
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Aug 23, 2020
1 parent c726a53 commit c7072be
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.rst
include COPYING
include ldraw/ldraw-license.txt
recursive-include ldraw/templates *
recursive-include examples *
3 changes: 2 additions & 1 deletion ldraw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from ldraw.generation.colours import gen_colours
from ldraw.generation.parts import gen_parts
from ldraw.parts import Parts
from ldraw.resources import get_resource
from ldraw.utils import ensure_exists

try:
Expand Down Expand Up @@ -174,7 +175,7 @@ def generate(parts_lst, output_dir, force=False):

with open(library__init__, 'w') as library__init__:
library__init__.write(LIBRARY_INIT)
shutil.copy('ldraw-license.txt', os.path.join(library_path, 'license.txt'))
shutil.copy(get_resource('ldraw-license.txt'), os.path.join(library_path, 'license.txt'))

gen_colours(parts, output_dir)
gen_parts(parts, output_dir)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ldraw/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def get_resource(filename):
return pkg_resources.resource_filename('ldraw', filename)
return pkg_resources.resource_filename('ldraw', filename)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def get_readme():
name="pyldraw",
description="A package for working with LDraw format files.",
long_description=get_readme(),
include_package_data=True,
author=" David Boddie <david@boddie.org.uk>",
maintainer="Matthieu Berthomé <rienafairefr@gmail.com>",
author_email="rienairefr@gmail.com, david@boddie.org.uk",
Expand Down

0 comments on commit c7072be

Please sign in to comment.