Sfoglia il codice sorgente

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 anni fa
parent
commit
e99c431f59
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
     """
-    from vector import vector_db
+    from .vector import vector_db
     nuldev = file(os.devnull, 'w')
     used = []
     vects = list_strings('vect')