Skip to content

Commit f1d6bd8

Browse files
committed
Update setup.py according to FileNotFoundError GDGVIT#33 GDGVIT#36
Update setup.py according to FileNotFoundError GDGVIT#33 GDGVIT#36
1 parent 451dd35 commit f1d6bd8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
except FileNotFoundError:
1717
long_description = ""
1818

19+
def copy_dir():
20+
dir_path = 'Resource_Files'
21+
base_dir = os.path.join('pipgui', dir_path)
22+
for (dirpath, dirnames, files) in os.walk(base_dir):
23+
for f in files:
24+
yield os.path.join(dirpath.split('/', 1)[0], f)
25+
1926
setup(
2027
name="pipgui",
2128
version=1.4,
@@ -27,8 +34,7 @@
2734
"pipgui",
2835
"pipgui.*"
2936
]),
30-
data_files=[('pipgui/Resource_Files/', [f for f in copy_dir()]
31-
)],
37+
data_files=[('pipgui/Resource_Files/', [f for f in copy_dir()])],
3238
python_requires='>=3.4',
3339
include_package_data=True,
3440
entry_points={

0 commit comments

Comments
 (0)