Skip to content

Commit d990383

Browse files
committed
Fix version detection
1 parent 7429a7a commit d990383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_copilot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
try:
1616
_dist = pkg_resources.get_distribution(__package__)
17-
if not __file__.startswith(os.path.join(_dist.location, '__package__')):
17+
if not __file__.startswith(os.path.join(_dist.location, __package__)):
1818
# Manually raise the exception if there is a distribution but
1919
# it's installed from elsewhere.
2020
raise pkg_resources.DistributionNotFound

0 commit comments

Comments
 (0)