diff --git a/.gitignore b/.gitignore index e519347..7f71f80 100644 --- a/.gitignore +++ b/.gitignore @@ -171,3 +171,10 @@ public/ jsconfig.json node_modules/ .hugo_build.lock + +## Assets +*.npz +*.dll +*.exe +*.ini +!rerun-animation/configs/*.ini diff --git a/rerun-animation.ini b/rerun-animation.ini deleted file mode 100644 index 49ce8fe..0000000 --- a/rerun-animation.ini +++ /dev/null @@ -1,19 +0,0 @@ -[body] -type = smplh - -[smplh.file.keys] -shape = betas -pose = pose_body -gender = gender -translation = trans -rotation = root_orient -hands = pose_hand -fps = mocap_frame_rate - -[smplh.options] -use_pose_blendshapes = yes -color = gray -pose_type = axisangle - -[rerun] -up_axis = y \ No newline at end of file diff --git a/rerun_animation/actions/config.py b/rerun_animation/actions/config.py index 0172ea2..349bd78 100644 --- a/rerun_animation/actions/config.py +++ b/rerun_animation/actions/config.py @@ -53,8 +53,8 @@ def run(): abspath = str(pkg_file.locate()) if abspath.endswith(main_filename): break - pkg_path = os.path.dirname(abspath) - configs_path = os.path.join(pkg_path, "configs") + pkg_path = os.path.dirname(os.path.dirname(abspath)) + configs_path = os.path.join(os.path.dirname(abspath), "configs") match args.action: case "list": installed = glob.glob(os.path.join(configs_path, "**", "*.ini"), recursive=True) @@ -88,7 +88,7 @@ def run(): empty_lines_in_values=False, # defaults=Constants.CONFIGURATION_DEFAULTS, interpolation=configparser.ExtendedInterpolation()) - config.read(Constants.CONFIG_FILENAME) + config.read(Constants.CURRENT_CONFIG_FILENAME) pprint({section: dict(config[section]) for section in config}, expand_all=True) case "select": names = [os.path.splitext(os.path.basename(fp))[0] for fp in glob.glob(os.path.join(configs_path, "*.ini"))] diff --git a/setup.py b/setup.py index cf5ca4e..1ccdec0 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ def get_requirements(): return requirements PACKAGE_NAME = 'rerun-animation' -VERSION = '0.0.1' +VERSION = '0.0.2' AUTHOR = 'Moverse P.C.' EMAIL = 'info@moverse.ai' LICENSE = 'Apache 2.0'