Convert Blender-Purge
to a more generic Blender-Crawl
Tool
#42
@ -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()
|
||||||
|
@ -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'])
|
||||||
|
]
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user