Message126545
Thanks for the report.
“No directory information from files is used to determine the final location of the installed file; only the name of the file is used”
I understand this line to mean that only the basename of the file will be used in the target directory, IOW that ('config', ['cfg/data.cfg']) will create a file in config/data.cfg, not config/cfg/data.cfg. I’m not 100% sure about my reading though, this line is confusing.
Paths starting with '..' are relative, even if they’re not under the top-level directory of the project (do the docs say they should be?), so the ability to give '../../spam/whatever' as data file looks okay. However, it should not be installed to target_dir/../../spam, that’s definitely a bug (coming from os.path.join in cmd.Command.copy_file, I think).
If you want to write a test and fix, there are some guidelines at http://wiki.python.org/moin/Distutils/FixingBugs |
|
Date |
User |
Action |
Args |
2011-01-19 17:42:48 | eric.araujo | set | recipients:
+ eric.araujo, fdrake, tarek, Thorsten.Simons |
2011-01-19 17:42:48 | eric.araujo | set | messageid: <1295458968.53.0.953684063866.issue10932@psf.upfronthosting.co.za> |
2011-01-19 17:42:28 | eric.araujo | link | issue10932 messages |
2011-01-19 17:42:27 | eric.araujo | create | |
|