Convert Blender-Purge to a more generic Blender-Crawl Tool #42

Merged
Nick Alberelli merged 34 commits from feature/blender-crawl into main 2023-05-17 15:38:47 +02:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit 1f3e993ea5 - Show all commits

View File

@ -137,6 +137,14 @@ def get_purge_path(purge: bool):
def main() -> int: def main() -> int:
import sys
# TODO Safely get 'default_purge' path set by setup.py, Debug why this doesn't work
# module = sys.modules['__main__']
# https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package
# print(pkg_resources.resource_stream("blender-crawl", 'default_purge'))
# print(module)
"""Crawl blender files in a directory and run a provided scripts""" """Crawl blender files in a directory and run a provided scripts"""
# Parse arguments. # Parse arguments.
args = parser.parse_args() args = parser.parse_args()

View File

@ -43,4 +43,7 @@ setup(
version="0.1.0", version="0.1.0",
zip_safe=False, zip_safe=False,
entry_points={"console_scripts": ["blender_crawl = blender_crawl.__main__:main"]}, entry_points={"console_scripts": ["blender_crawl = blender_crawl.__main__:main"]},
data_files=[
('default_purge', ['blender_crawl/default_scripts/purge.py'])
]
) )