Skip to content

Commit

Permalink
fix setup.py with hack for pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Nov 19, 2023
1 parent 4704d29 commit e427542
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions coverlovin2/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
sys.path.insert(0, __frame_dirpath__)

# do relative import
from __init__ import (
from .__init__ import (
NAME,
__url__,
__url_source__,
Expand Down Expand Up @@ -119,7 +119,6 @@
#

import attr # https://pypi.org/project/attrs/

# https://pypi.org/project/mutagen/
from mutagen.asf import ASF
from mutagen.asf._util import ASFHeaderError
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
"""

import os

from pathlib import Path
from setuptools import setup
from setuptools import find_packages
import sys

# https://pypi.org/project/py2exe/
try:
Expand All @@ -30,6 +31,10 @@
# not needed for typical builds, fails to install on non-Windows Python
pass


# HACK: workaround for `module not found`
sys.path.append(str(Path(__file__).resolve().parent))

from coverlovin2 import (
__version__,
__author__,
Expand Down

0 comments on commit e427542

Please sign in to comment.