Detects travis and ignores pygtk

This commit is contained in:
Abhay Rana 2014-06-07 10:48:04 +05:30
parent 578830a2e6
commit b1bcdf1024
1 changed files with 3 additions and 3 deletions

View File

@ -1,14 +1,14 @@
#!/usr/bin/env python
try:
import os
if(os.environ.get('TRAVIS')!='true'):
import pygtk
pygtk.require('2.0')
import gtk
import webbrowser
except ImportError:
pass
import json
import argparse
from os.path import expanduser