-
-
Save omz/d1c6b5dc180181252807 to your computer and use it in GitHub Desktop.
Install muntjac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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