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

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -