/usr/share/sumo/tools/net/batch0103to0110.py is in sumo-tools 0.15.0~dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/usr/bin/python
"""
@file batch0103to0110.py
@author Daniel Krajzewicz
@author Michael Behrisch
@date 2007
@version $Id: batch0103to0110.py 11671 2012-01-07 20:14:30Z behrisch $
Applies the transformation on all nets in the given folder or
- if no folder is given - in the base folder (../..).
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2009-2012 DLR (http://www.dlr.de/) and contributors
All rights reserved
"""
import os, os.path, sys
r = "../../"
if len(sys.argv)>1:
r = sys.argv[1]
srcRoot = os.path.join(os.path.dirname(sys.argv[0]), r)
for root, dirs, files in os.walk(srcRoot):
for name in files:
if name.endswith(".net.xml") or name=="net.netconvert" or name=="net.netgen":
p = os.path.join(root, name)
print "Patching " + p + "..."
os.system("0103to0110.py " + p)
os.remove(p)
os.rename(p+".chg", p)
for ignoreDir in ['.svn', 'foreign']:
if ignoreDir in dirs:
dirs.remove(ignoreDir)
|