Skip to content

Commit

Permalink
bug fix for version update
Browse files Browse the repository at this point in the history
  • Loading branch information
plemeri committed Sep 26, 2023
1 parent b5230c7 commit 359fb1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include transparent_background/config.yaml
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="transparent-background",
version="1.2.5",
version="1.2.7",
author="Taehun Kim",
author_email="taehoon1018@postech.ac.kr",
description="Make images with transparent background",
Expand All @@ -27,5 +27,5 @@
"transparent-background=transparent_background:console",
],
},
package_data={'transparent-background': ['~', '.transparent-background', 'config.yaml']}
include_package_data=True
)
2 changes: 1 addition & 1 deletion transparent_background/Remover.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, mode="base", jit=False, device=None, ckpt=None, fast=None):
os.makedirs(home_dir, exist_ok=True)

if not os.path.isfile(os.path.join(home_dir, "config.yaml")):
shutil.copy(os.path.join(os.path.curdir, "config.yaml"), os.path.join(home_dir, "config.yaml"))
shutil.copy(os.path.join(repopath, "config.yaml"), os.path.join(home_dir, "config.yaml"))
self.meta = load_config(os.path.join(home_dir, "config.yaml"))[mode]

if fast is not None:
Expand Down
File renamed without changes.

0 comments on commit 359fb1b

Please sign in to comment.