Skip to content

Commit e427542

Browse files
committed
fix setup.py with hack for pathing
1 parent 4704d29 commit e427542

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

coverlovin2/app.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
sys.path.insert(0, __frame_dirpath__)
4141

4242
# do relative import
43-
from __init__ import (
43+
from .__init__ import (
4444
NAME,
4545
__url__,
4646
__url_source__,
@@ -119,7 +119,6 @@
119119
#
120120

121121
import attr # https://pypi.org/project/attrs/
122-
123122
# https://pypi.org/project/mutagen/
124123
from mutagen.asf import ASF
125124
from mutagen.asf._util import ASFHeaderError

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
"""
2020

2121
import os
22-
22+
from pathlib import Path
2323
from setuptools import setup
2424
from setuptools import find_packages
25+
import sys
2526

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

34+
35+
# HACK: workaround for `module not found`
36+
sys.path.append(str(Path(__file__).resolve().parent))
37+
3338
from coverlovin2 import (
3439
__version__,
3540
__author__,

0 commit comments

Comments
 (0)