Last change
on this file since 7543 was
7478,
checked in by uli, 13 years ago
|
Sample usage of multi-mechanize (not finished).
|
File size:
966 bytes
|
Rev | Line | |
---|
[7478] | 1 | #!/usr/bin/env python
|
---|
| 2 | #
|
---|
| 3 | # Copyright (c) 2010 Corey Goldberg (corey@goldb.org)
|
---|
| 4 | # License: GNU LGPLv3
|
---|
| 5 | #
|
---|
| 6 | # This file is part of Multi-Mechanize
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | """ script to verify all multi-mechanize dependencies are satisfied """
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | import sys
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | if sys.version_info >= (3,):
|
---|
| 16 | print 'sorry, no py3k support yet'
|
---|
| 17 | elif sys.version_info < (2, 6, 3):
|
---|
| 18 | print 'incompatible python version detected: %s. Minimum version supported is 2.6' % repr(sys.version_info)
|
---|
| 19 | else:
|
---|
| 20 | print 'compatible python version detected: %s' % repr(sys.version_info)
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | try:
|
---|
| 24 | import mechanize
|
---|
| 25 | print 'imported Mechanize succesfully'
|
---|
| 26 | except ImportError:
|
---|
| 27 | print 'can not import Mechanize'
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | try:
|
---|
| 31 | import pylab
|
---|
| 32 | print 'imported Matplotlib succesfully'
|
---|
| 33 | except ImportError:
|
---|
| 34 | print 'can not import Matplotlib'
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | try:
|
---|
| 38 | import sqlalchemy
|
---|
| 39 | print 'imported SQLAlchemy succesfully'
|
---|
| 40 | except ImportError:
|
---|
| 41 | print 'can not import SQLAlchemy'
|
---|
| 42 |
|
---|
Note: See
TracBrowser for help on using the repository browser.