8000 Create the doc/mpl_examples symlink if not existing. · matplotlib/matplotlib@63405ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 63405ff

Browse files
committed
Create the doc/mpl_examples symlink if not existing.
1 parent 6397fe9 commit 63405ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/make.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ def all():
236236
os.chd 8616 ir(os.path.dirname(os.path.join(current_dir, __file__)))
237237
copy_if_out_of_date('../INSTALL', 'users/installing.rst')
238238

239+
# Create the examples symlink, if it doesn't exist
240+
if not os.path.exists('mpl_examples'):
241+
if hasattr(os, 'symlink'):
242+
os.symlink('../examples', 'mpl_examples')
243+
else:
244+
shutil.copytree('../examples', 'mpl_examples')
239245

240246
if len(sys.argv)>1:
241247
if '--small' in sys.argv[1:]:

0 commit comments

Comments
 (0)
0