Lars Gustäbel l...@gustaebel.de added the comment:
I suppose this issue is related to issue4750 which I have just closed.
If not, please reopen this issue.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The archive is created, and the path in the archive is
'C:\\testtarfile\\testtarfile.py', not 'test/testtarfile.py'
as I would expect.
I don't see the path you mention. Which archive manager do you use?
I tried with 7-zip, and it
Elijah Merkin e...@transas.com added the comment:
Tested again under Python 2.6.1 on Windows XP (added Python 2.6 to
versions).
An archive I attached to the issue contains a .py file that reproduces
the bug and an archive created by it.
In my case I just put the .py file to C:\testtarfile\
Elijah Merkin e...@transas.com added the comment:
Sorry for not explaining properly, I was distracted.
1. The absolute path really exists in the .tar.gz file when I view it in
a hex editor.
2. Windows archive managers I tried see that absolute path.
3. Linux tar utility, however, somehow
Lars Gustäbel l...@gustaebel.de added the comment:
At the moment, I am unable to reproduce the problem you describe. I
tried several combinations of what I think you could have meant, but
everything seems to work okay here.
Could you please provide some stand-alone testcase or code to illustrate
New submission from Elijah Merkin e...@transas.com:
Tested on Python 2.5.4.
1. Use tarfile.open(fname, w|gz) to create an archive.
2. Add a file using TarFile.add(name, arcname=None, recursive=True,
exclude=None) by specifying 2 params: absolute path to a source file as
'name' and something