Python Abspath Example - Python

How to find abspath in python programming?

Snippet Code

Rate this page :
  [ 0 votes]

The simple code given below is used to find the abspath corresponding to the current working folder in Python. The sample python abspath codeis given below

import os print os.path.abspath('test.txt')


Ask Questions

Ask Question