]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Moved interact implementation to imapclient package (#82)
authorMenno Smits <menno@freshfoo.com>
Tue, 8 Nov 2011 21:11:17 +0000 (21:11 +0000)
committerMenno Smits <menno@freshfoo.com>
Tue, 8 Nov 2011 21:11:17 +0000 (21:11 +0000)
imapclient/interact.py [moved from interact.py with 96% similarity, mode: 0644]

old mode 100755 (executable)
new mode 100644 (file)
similarity index 96%
rename from interact.py
rename to imapclient/interact.py
index 900e5d8..b5162be
@@ -8,7 +8,7 @@
 from getpass import getpass
 from optparse import OptionParser
 
-from imapclient.config import parse_config_file, create_client_from_config
+from config import parse_config_file, create_client_from_config
 
 def command_line():
     p = OptionParser()
@@ -44,8 +44,7 @@ def command_line():
         opts.oauth = False     # OAUTH not supported on command line
     return opts
 
-
-if __name__ == '__main__':
+def main():
     opts = command_line()
     print 'Connecting...'
     client = create_client_from_config(opts)
@@ -71,3 +70,6 @@ if __name__ == '__main__':
             break
         except ImportError:
             pass
+
+if __name__ == '__main__':
+    main()