瀏覽代碼

v.pack: move db and proj file to the root, preparation for packaging multiple maps

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57119 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父節點
當前提交
9ef958bc15
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/v.pack/v.pack.py

+ 2 - 2
scripts/v.pack/v.pack.py

@@ -100,7 +100,7 @@ def main():
                               from_table =  dbconn['table'], 
                               to_driver = 'sqlite', to_database = sqlitedb, 
                               to_table = dbconn['table'])
-        tar.add(sqlitedb, os.path.join(infile, 'db.sqlite'))
+        tar.add(sqlitedb, 'db.sqlite')
     
     # add to the tar file the PROJ files to check when unpack file    
     gisenv = grass.gisenv()
@@ -108,7 +108,7 @@ def main():
         path = os.path.join(gisenv['GISDBASE'], gisenv['LOCATION_NAME'],
                             'PERMANENT', 'PROJ_' + support)
         if os.path.exists(path):
-            tar.add(path, os.path.join(infile, 'PROJ_' + support))
+            tar.add(path, 'PROJ_' + support)
     tar.close()
     
     grass.message(_("Pack file <%s> created") % os.path.join(os.getcwd(), outfile))