Return the current working directory : Environment : Development PYTHON examples


PYTHON examples » Development » Environment »

 

Return the current working directory





import os

print os.getcwd()      # Return the current working directory


#Be sure to use the "import os" style instead of "from os import *". This will keep 
#os.open() from shadowing the builtin open() function which operates much 
#differently.


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Environment