Import pkg_resources before launchpadlib.

Fixes bug 1001664. It's a hack, but it's not an evil hack.

Change-Id: I6d09cdecc5cae64a21cefad81c75ed1c02c4801c
This commit is contained in:
Monty Taylor 2012-05-19 11:14:27 -04:00
parent 66dff2a2db
commit 456cbd6f4b

View File

@ -23,6 +23,11 @@ import subprocess
from datetime import datetime from datetime import datetime
# There is a bug (810019) somewhere deep which causes pkg_resources
# to bitch if it's imported after argparse. launchpadlib imports it,
# so if we head it off at the pass, we can skip cronspam
import pkg_resources
import StringIO import StringIO
import ConfigParser import ConfigParser
import argparse import argparse