Get full path : Path : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Path »

 

Get full path


import sys, os

print 'sys.argv[0=', sys.argv[0]
pathname = os.path.dirname(sys.argv[0])
print 'path =', pathname
print 'full path =', os.path.abspath(pathname)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo File
» Path