##// END OF EJS Templates
allow IPython to run without writable home dir...
allow IPython to run without writable home dir get_ipython_dir() ensures that the *IPython* dir is writable, which is more relevant, but the home dir need not be writable. Some optional behaviors (e.g. `%logstart global`) will not work if the home dir is not writable, but IPython should not crash. Approximately no other operations actually depend on writing directly to $HOME.

File last commit:

r4454:5e1dd6cd
r5384:db42b5f7
Show More
testupload
21 lines | 576 B | text/plain | TextLexer
#!/usr/bin/env python
"""Simple upload script to push up into the testing directory a local build
"""
from __future__ import print_function
from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
distdir = pjoin(ipdir, 'dist')
# Load release info
execfile(pjoin(ipdir, 'IPython','core','release.py'))
# Build site addresses for file uploads
testing_site = '%s/testing/%s' % (archive, version)
cd(distdir)
# FIXME: this assumes the path *with the version number* exists on the server
sh('scp * %s' % testing_site)