Changeset 271:061c3de402c2
- Timestamp:
- 08/11/11 21:11:17 (7 months ago)
- Author:
- Menno Smits <menno@…>
- Branch:
- default
- Message:
-
Moved interact implementation to imapclient package (#82)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r270
|
r271
|
|
| 9 | 9 | from optparse import OptionParser |
| 10 | 10 | |
| 11 | | from imapclient.config import parse_config_file, create_client_from_config |
| | 11 | from config import parse_config_file, create_client_from_config |
| 12 | 12 | |
| 13 | 13 | def command_line(): |
| … |
… |
|
| 45 | 45 | return opts |
| 46 | 46 | |
| 47 | | |
| 48 | | if __name__ == '__main__': |
| | 47 | def main(): |
| 49 | 48 | opts = command_line() |
| 50 | 49 | print 'Connecting...' |
| … |
… |
|
| 72 | 71 | except ImportError: |
| 73 | 72 | pass |
| | 73 | |
| | 74 | if __name__ == '__main__': |
| | 75 | main() |