#12102 closed (fixed)
Relative PYTHONPATH in the docs
Reported by: | Alexander Konovalenko | Owned by: | |
---|---|---|---|
Component: | Documentation | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In at least one place in the documentation you explicitly recommend setting the PYTHONPATH
environment variable to a relative path:
PYTHONPATH=.. ./runtests.py --settings=settings generic_relations i18n
There is an obvious security risk associated with relative paths.
Suggestions:
- Change the above line to something like
PYTHONPATH=`pwd`/..
- Add a warning everywhere in the docs where you mention setting the
PYTHONPATH
variable that for security reasons it must contain absolute paths only.
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
Owner: | removed |
---|
comment:2 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 15 years ago
Attachment: | PYTHONPATH_documentation_patch.diff added |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
git-diff for the patch