-
-
Notifications
You must be signed in to change notification settings - Fork 749
Expand file tree
/
Copy pathfabfile.py
More file actions
16 lines (13 loc) · 699 Bytes
/
fabfile.py
File metadata and controls
16 lines (13 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from distutils.dir_util import copy_tree
IPYTHON_PATH = os.path.join("..", "ipython")
def update():
"""Pull the latest documentation from the neighboring /ipython directory.
This will update the tutorial/example notebooks inside this directory with
the notebooks in the local IPython repository. Any changes pulled from
the ipython directory will overwrite the old contents in this directory.
This script does not run `git remote update` or `git checkout master` in the
ipython repository, instead you are responsible for that."""
destination = os.path.join('examples')
source = os.path.join(IPYTHON_PATH, 'examples')
copy_tree(source, destination)