sh: 0: getcwd() failed: No such file or directory on cited drive

I am trying to compile ARM code on Ubuntu 12.04 (Precise Pangolin). Everything is working fine when I put the code in the local directory. But when I put the code in the cited mount directory, an error shows up: making testXmlFiles sh: 0: getcwd() failed: No such file or directory ARM Compiling xxxxx.c sh: … Read more

How can I find script’s directory? [duplicate]

This question already has answers here: How do you properly determine the current script directory? (16 answers) Closed 5 years ago. Consider the following Python code: import os print os.getcwd() I use os.getcwd() to get the script file’s directory location. When I run the script from the command line it gives me the correct path … Read more