From 0476272c79dad184db9ae33860ae0509f4646ac2 Mon Sep 17 00:00:00 2001 From: Ton Kersten Date: Mon, 23 Sep 2013 11:30:31 +0200 Subject: [PATCH 1/2] Fix the install destination --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4ae1e661d4c..305aa640aaf 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from ansible.constants import DEFAULT_MODULE_PATH dirs=os.listdir("./library/") data_files = [] for i in dirs: - data_files.append((DEFAULT_MODULE_PATH + i, glob('./library/' + i + '/*'))) + data_files.append((DEFAULT_MODULE_PATH + '/' + i, glob('./library/' + i + '/*'))) setup(name='ansible', version=__version__, From 0c2af5d5ecde5935154e06a673add00c8da99ecd Mon Sep 17 00:00:00 2001 From: Ton Kersten Date: Mon, 23 Sep 2013 14:34:27 +0200 Subject: [PATCH 2/2] Fix the install destination, now with os.path.join --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 305aa640aaf..c503c7cf132 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from ansible.constants import DEFAULT_MODULE_PATH dirs=os.listdir("./library/") data_files = [] for i in dirs: - data_files.append((DEFAULT_MODULE_PATH + '/' + i, glob('./library/' + i + '/*'))) + data_files.append((os.path.join(DEFAULT_MODULE_PATH, i), glob('./library/' + i + '/*'))) setup(name='ansible', version=__version__,