From 9d82574465fa18f54cb22a40e98b17a0c8afe665 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Fri, 20 Jun 2014 00:03:30 -0400 Subject: [PATCH] add file_list to setup.py --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 7f4ed46b..6e3a5be5 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,13 @@ try: except ImportError: from distutils.core import setup +def file_list(path): + files = [] + for filename in os.listdir(path): + if os.path.isfile(path+'/'+filename): + files.append(path+'/'+filename) + return files + version = open('version').read().strip() args = {}