Skip to content

Instantly share code, notes, and snippets.

@omz
Created May 18, 2013 04:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omz/d1c6b5dc180181252807 to your computer and use it in GitHub Desktop.
Save omz/d1c6b5dc180181252807 to your computer and use it in GitHub Desktop.
Install muntjac
import urllib
from zipfile import ZipFile
import os
import sys
print 'Downloading...'
urllib.urlretrieve('http://omz-software.com/temp/muntjac_pythonista.zip', 'muntjac_pythonista.zip')
print 'Extracting...'
with ZipFile('muntjac_pythonista.zip', 'r') as z:
z.extractall()
os.remove('muntjac_pythonista.zip')
import editor
editor.reload_files()
try:
print 'Testing...'
sys.path.append('muntjac_pythonista')
import muntjac
print 'Success.'
except ImportError:
print 'Something went wrong, importing muntjac failed.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment