From eaa2eaef5e4f00bc61d0bc9dafbfda13518c7c57 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sun, 15 May 2022 20:03:39 +0200 Subject: [PATCH] Update setup.py Consider the case where self.distribution.package_dir is an empty dictionary --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bd80bd6..337b310 100755 --- a/setup.py +++ b/setup.py @@ -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[""])