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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -