Skip to content

Instantly share code, notes, and snippets.

@treyhunner
Created April 26, 2012 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treyhunner/2497220 to your computer and use it in GitHub Desktop.
Save treyhunner/2497220 to your computer and use it in GitHub Desktop.
Test file for OS path representation
"""File for testing OS path separators in Python
Execute this file like this:
python test_path.py c:/path/to/a/file.txt
"""
import sys
import os
print sys.argv
print os.sep
print sys.argv[1].replace(os.sep, '/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment