Browse Source

prevent the use of chdir

pull/231/head
Oliverpool 9 years ago
parent
commit
43178d5bbf
  1. 7
      setup.py

7
setup.py

@ -28,10 +28,9 @@ if sys.platform[0:3] == 'win':
if not os.path.isdir(root_directory): if not os.path.isdir(root_directory):
return return
with chdir(root_directory): for root, __ignored, filenames in os.walk(root_directory):
for root, __ignored, filenames in os.walk(os.curdir): for filename in filenames:
for filename in filenames: yield os.path.join(root, filename)
yield os.path.join(root, filename)
# List the data files # List the data files
data_files = recursive_find(__DATADIR__) data_files = recursive_find(__DATADIR__)

Loading…
Cancel
Save