blob: 23dd4c2d1a24a425f54091e5ea0ee7ea2804d3c4 [file] [log] [blame]
#!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import subprocess
import sys
for line in sys.stdin:
if line.startswith('SF:'):
filename = line[3:].strip()
p = subprocess.Popen(['cygpath', filename], stdout=subprocess.PIPE)
(p_stdout, _) = p.communicate()
print 'SF:' + p_stdout.strip()
else:
print line.strip()