Skip to content

Commit

Permalink
fix: update config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nmvrs committed Jul 17, 2024
1 parent c370c27 commit b7f0cbf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,10 @@ public/
jsconfig.json
node_modules/
.hugo_build.lock

## Assets
*.npz
*.dll
*.exe
*.ini
!rerun-animation/configs/*.ini
19 changes: 0 additions & 19 deletions rerun-animation.ini

This file was deleted.

6 changes: 3 additions & 3 deletions rerun_animation/actions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"))]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]'
LICENSE = 'Apache 2.0'
Expand Down

0 comments on commit b7f0cbf

Please sign in to comment.