Make use of new module constfunc.

svn: r14285
This commit is contained in:
Peter Landgren 2010-02-08 17:24:43 +00:00
parent 39ba257b49
commit c6641878c2

View File

@ -62,6 +62,7 @@ from ExportOptions import WriterOptionBox
import gen.proxy
from ExportXml import XmlWriter
import Utils
import constfunc
#-------------------------------------------------------------------------
#
@ -232,7 +233,7 @@ class PackageWriter(object):
tarinfo = tarfile.TarInfo('data.gramps')
tarinfo.size = len(g.getvalue())
tarinfo.mtime = time.time()
if os.sys.platform != "win32":
if not constfunc.win():
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
g.seek(0)