[help] can't select python in 'open with..' menu Windows 7

正在查看此主题的用户

freak_oz

Squire
Hey,

I've searched the forums and read about every guide including the new module documentation for 1.011
but i've seen this problem nowhere.. Let me explain >

I first had the problem of  *.py not found. So then i searched some things and i figured i needed python 2.6 instead of 3.3.
But now everytime i want to associate .py files with python.exe(to get the batch file working) i can't select python. I click 'open with..' then i browse to python.exe, but then when is select python.exe it don't show up on the choice screen(you know the one you get when 'open with..' with notepad and stuff).

Does anybody know what to do in this situation? isit a windows problem?

- freak
 
Don't associate py files with python, but with an editor like Notepad++. You want to open them for editing, not run them.
 
everytime i want to associate .py files with python.exe(to get the batch file working)
That sounds like something's wrong with your PATH variables.
 
Running individual modules really won't work, you'll really want to run the header files in the order specified in the batch file (even though it's not streamlined). Just modify the batch file to replace "python" with your actual Python path like so
插入代码块:
@echo off
C:\Python26\python process_init.py
...
 
Ohh thanks guys, i'll try that with the path. But when i ran windows xp i always just associated .py files with the python executable so the batch file only contained the file names instead of the python path in front of it.

thanks for the advice anyway!

- Freak

@ somebody, it worked! thank you :smile:
 
后退
顶部 底部