python - cygwin path usage. I just can't figure this out -
i'm using cygwin , trying run python script. when i'm in script's folder runs fine when try run using whole path doesn't work. following error no such file or directory
this works
./prepare_receptor4.py this doesn't
/cygdrive/c/program files/mgltools-1.5.6/lib/site-packages/autodocktools/utilities24/prepare_receptor4.py i know need escape space character doesn't work either
/cygdrive/c/program\ files/mgltools-1.5.6/lib/site-packages/autodocktools/utilities24/prepare_receptor4.py this doesn't work either
"/cygdrive/c/program files/mgltools-1.5.6/lib/site-packages/autodocktools/utilities24/prepare_receptor4.py" i'm going insane, don't it. please help.
it better run python script in way. no `.
python /cygdrive/c/program\ files/mgltools-1.5.6/lib/site-packages/autodocktools/utilities24/prepare_receptor4.py . alias current folder. ./ means in current directory script. if use ./cygdrive/c/program\ files/mgltools-1.5.6/lib/site-packages/autodocktools/utilities24/prepare_receptor4.py, cygwin search 'cygdrive' in current directory. if not @ / directory, cygwin cannot find file , that's reason not directory error.
Comments
Post a Comment