Skip to content

Instantly share code, notes, and snippets.

@jdevera
Created April 20, 2010 18:39
Show Gist options
  • Save jdevera/372873 to your computer and use it in GitHub Desktop.
Save jdevera/372873 to your computer and use it in GitHub Desktop.
Abspath
#!/usr/bin/python
import os.path
import sys
if len(sys.argv) > 1:
if os.path.exists(sys.argv[1]):
print os.path.abspath(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment