From 67b7be0b6703a7b7a4f34db08d2ae2cc138efece Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Wed, 12 Mar 2014 13:28:51 -0400 Subject: [PATCH] integrations: make Asana dependency on python-dateutil explicit. (imported from commit 354b42f68e3d1f980649993bad4dbe4ff79a11d6) --- integrations/asana/zulip_asana_mirror | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) mode change 100644 => 100755 integrations/asana/zulip_asana_mirror diff --git a/integrations/asana/zulip_asana_mirror b/integrations/asana/zulip_asana_mirror old mode 100644 new mode 100755 index a92bd79..c0ee4d8 --- a/integrations/asana/zulip_asana_mirror +++ b/integrations/asana/zulip_asana_mirror @@ -22,11 +22,17 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. +# +# The "zulip_asana_mirror" script is run continuously, possibly on a work computer +# or preferably on a server. +# +# When restarted, it will attempt to pick up where it left off. +# +# python-dateutil is a dependency for this script. import base64 from datetime import datetime, timedelta -import dateutil.parser -import dateutil.tz + import json import logging import os @@ -34,6 +40,15 @@ import time import urllib2 import sys + +try: + import dateutil.parser + import dateutil.tz +except ImportError, e: + print >>sys.stderr, e + print >>sys.stderr, "Please install the python-dateutil package." + exit(1) + sys.path.insert(0, os.path.dirname(__file__)) import zulip_asana_config as config VERSION = "0.9"