Top "Getcwd" questions

The getcwd() function retrieves the current working directory pathname on POSIX compliant machines.

How can I find script's directory with Python?

Consider the following Python code: import os print os.getcwd() I use os.getcwd() to get the script file's directory …

python directory django-views getcwd
sh: 0: getcwd() failed: No such file or directory on cited drive

I am trying to compile ARM code in Ubuntu 12. Everything is working fine when I put the code in the …

linux ubuntu ubuntu-12.04 getcwd
shell init issue when click tab, what's wrong with getcwd?

once i click Tab on bash, the error message will appear, what's wrong? symlink-hook: error retrieving current directory: getcwd: cannot …

linux bash shell pwd getcwd
Is there a C++ equivalent to getcwd?

I see C's getcwd via: man 3 cwd I suspect C++ has a similar one, that could return me a std::…

c++ getcwd
get script directory name - Python

I know I can use this to get the full file path os.path.dirname(os.path.realpath(__file__)) But …

python file python-os getcwd
get current working directory in Lua

What's the Lua to get the current working directory on Windows XP SP3 (or to get the directory of the …

windows-xp lua getcwd
PHP: How to set current working directory to be same as directory executing the script

I'm in the process of transferring my website from one server to another. I have some php scripts that use …

php getcwd
What is a cross-platform way to get the current directory?

I need a cross-platform way to get the current working directory (yes, getcwd does what I want). I thought this …

c++ cross-platform getcwd
How return a std::string from C's "getcwd" function

Sorry to keep hammering on this, but I'm trying to learn :). Is this any good? And yes, I care about …

c++ memory-leaks cross-platform getcwd
Launching a python script via a symbolic link

I have an executable python script that exists in a "scripts" directory, and there's a symbolic link to that script (…

python linux symlink getcwd