From 8fd4fbabfcfc014d05f3eb086b665dcd75a7393d Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 27 Jun 2016 07:20:37 +0200 Subject: [PATCH] data must be relative to patacrep install --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6ffe091f..aedd2009 100755 --- a/setup.py +++ b/setup.py @@ -28,9 +28,12 @@ if sys.platform[0:3] == 'win': if not os.path.isdir(root_directory): return - for root, __ignored, filenames in os.walk(root_directory): + olddir = os.getcwd() + os.chdir(root_directory) + for root, __ignored, filenames in os.walk(os.curdir): for filename in filenames: yield os.path.join(root, filename) + os.chdir(olddir) # List the data files data_files = recursive_find(__DATADIR__)