On 02/13/2012 11:01 AM, Dennis Lee Bieber wrote:
> On Sun, 12 Feb 2012 23:02:20 -0800 (PST), raddy <raddy.man...@gmail.com>
> wrote:
...
>       Can you run ANY python script (.py) file by typing its name on the
> command line?... Say something that does nothing more than:
> 
> print "I'm running"
> 
> (test while /in/ the directory that has the file, first)
> 
>       My suspicion is that you don't have .py defined as a valid "command
> file extension" NOR do you have the associations set to run one. What

I'm pretty sure you can also make .py files executable by mucking around
in the Windows registry, if you don't have PowerShell--although I can't
recommend that, of course. You should be able to find tutorials for that
or similar, none of which will recommend actually doing it.

You have to make 2 registry entries, which will be similar to the
preexisting ones for .exe files. (command file extension and association).

Backup your registry and think about how much you value your Windows
installation. If you open regedit.exe, you can search for EXE, and you
will eventually find both entries that need to be replicated, albeit
among many unrelated entries.

However, I haven't used Windows OSes since 2009, and no one can make me
go back. I.e. if you do this, you're on your own.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to