NTRT Simulator
v1.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Pages
printDistances.py
1
""" Prints the first comma-separated value on every line """
2
3
import
sys
4
5
try
:
6
f = open(sys.argv[1],
'
r')
7
for
line
in
f:
8
print
line.partition(
','
)[0]
# Implicit '\n' printed as well
9
finally
:
10
f.close()
11
dev
steve
Escape_T6
logs
printDistances.py
Generated on Fri Jan 9 2015 15:38:48 for NTRT Simulator by
1.8.7