From 43178d5bbf9bceaea04f151bbe94185f62c64086 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sun, 26 Jun 2016 20:13:29 +0200 Subject: [PATCH] prevent the use of chdir --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 6cbb5c2d..6ffe091f 100755 --- a/setup.py +++ b/setup.py @@ -28,10 +28,9 @@ if sys.platform[0:3] == 'win': if not os.path.isdir(root_directory): return - with chdir(root_directory): - for root, __ignored, filenames in os.walk(os.curdir): - for filename in filenames: - yield os.path.join(root, filename) + for root, __ignored, filenames in os.walk(root_directory): + for filename in filenames: + yield os.path.join(root, filename) # List the data files data_files = recursive_find(__DATADIR__)