pgtool
changeset 104 d8ff52a0390f
parent 102 fda45bdfd68d
--- a/pgtool	Mon May 26 18:18:21 2014 +0200
+++ b/pgtool	Wed Jul 09 18:03:54 2014 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 
 """
-Wrapper script for pgtoolkit tools.
+Wrapper script for pydbkit tools.
 
 Usage
 -----
@@ -21,11 +21,11 @@
 Configuration
 -------------
 
-Global pgtoolkit configuration:
-    /etc/pgtoolkit.conf
+Global pydbkit configuration:
+    /etc/pydbkit.conf
 
 Local configuration:
-    ./pgtoolkit.conf
+    ./pydbkit.conf
 
 Additional config file can be loaded using -c parameter (after tool name).
 
@@ -38,13 +38,13 @@
 
 """
 
-import pgtoolkit.tools
+import pydbkit.tools
 import sys
 from importlib import import_module
 
 
 def print_tool_with_short_desc(name):
-    module = import_module('pgtoolkit.tools.' + tool)
+    module = import_module('pydbkit.tools.' + tool)
     short_desc = module.cls.__doc__.lstrip().splitlines()[0]
     print(name.ljust(15), '-', short_desc)
 
@@ -56,7 +56,7 @@
 
     if sys.argv[1].startswith('--'):
         if sys.argv[1] == '--list':
-            for tool in pgtoolkit.tools.__all__:
+            for tool in pydbkit.tools.__all__:
                 print_tool_with_short_desc(tool)
         else:
             print(__doc__, end='')
@@ -65,11 +65,11 @@
     tool = sys.argv[1]
     tool_args = sys.argv[2:]
 
-    if tool not in pgtoolkit.tools.__all__:
+    if tool not in pydbkit.tools.__all__:
         print('Unknown tool "%s".\n\nCall "pgtool --list" to get list of all available tools.' % tool)
         sys.exit()
 
-    module = import_module('pgtoolkit.tools.' + tool)
+    module = import_module('pydbkit.tools.' + tool)
 
     tool = module.cls()
     tool.setup(tool_args)