Skip to content

Commit b992c9f

Browse files
committed
Make recursive package lookup backwards compatible
1 parent 095d432 commit b992c9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ def run(self):
191191

192192

193193
graph_objs_packages = [
194-
d for d, *_ in os.walk('plotly/graph_objs')
195-
if not d.endswith('__pycache__')]
194+
d[0] for d in os.walk('plotly/graph_objs')
195+
if not d[0].endswith('__pycache__')]
196196

197197

198198
validator_packages = [
199-
d for d, *_ in os.walk('plotly/validators')
200-
if not d.endswith('__pycache__')]
199+
d[0] for d in os.walk('plotly/validators')
200+
if not d[0].endswith('__pycache__')]
201201

202202

203203
setup(name='plotly',

0 commit comments

Comments
 (0)