浏览代码

script.db: Fix absolute import inside function

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65947 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 9 年之前
父节点
当前提交
e99c431f59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/script/db.py

+ 1 - 1
lib/python/script/db.py

@@ -181,7 +181,7 @@ def db_table_in_vector(table):
 
 
     :param str table: name of table to query
     :param str table: name of table to query
     """
     """
-    from vector import vector_db
+    from .vector import vector_db
     nuldev = file(os.devnull, 'w')
     nuldev = file(os.devnull, 'w')
     used = []
     used = []
     vects = list_strings('vect')
     vects = list_strings('vect')