Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Consider the case where self.distribution.package_dir is an empty dictionary
  • Loading branch information
atupone authored and Maratyszcza committed May 23, 2022
1 parent 257881e commit eaa2eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def finalize_options(self):
def run(self):
# package_dir may be None, in that case use the current directory.
import os
if self.distribution.package_dir is None:
if not self.distribution.package_dir:
src_dir = os.getcwd()
else:
src_dir = os.path.abspath(self.distribution.package_dir[""])
Expand Down

0 comments on commit eaa2eae

Please sign in to comment.