Changes between Version 2 and Version 3 of Ticket #19344, comment 5
- Timestamp:
- Dec 9, 2012, 4:17:45 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19344, comment 5
v2 v3 3 3 You are right. Sorry guys for my mistake. What I meant was `python /path/to/django-admin.py`. 4 4 5 For example in the Windows case (without virtualenv but I suspect that with virtualenv the problem remains) that script gets installed in the `$PYTHON_INSTALLATION_PATH\Scripts\` dir (usually `C:\pythonXY\Scripts\` and, in such platform, the techniques of associating .py files to the Python interpreter available are very hackish and brittle so it is always better to use the full path and asume there is no magic execution of .py files when they are executed from the command line specfying just their name.5 For example in the Windows case (without virtualenv but I suspect that with virtualenv the problem remains) that script gets installed in the `$PYTHON_INSTALLATION_PATH\Scripts\` dir (usually `C:\pythonXY\Scripts\`) and, in such platform, the techniques of associating .py files to the Python interpreter available are very hackish and brittle so it is always better to use the full path and asume there is no magic execution of .py files when they are executed from the command line specfying just their name.