Changeset 447
- Timestamp:
- 02/12/12 19:24:39 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/energysystem-process-Coopr3/temoa_model/temoa_graphviz.py
r434 r447 4 4 import os 5 5 6 from shutil import rmtree 6 7 from subprocess import call 7 8 from sys import stderr as SE … … 1103 1104 for d in M.time_of_day 1104 1105 ) 1105 print p, t, v, i, o, flowin, flowout1106 1106 used_carriers.update( g_processInputs[p, t, v] ) 1107 1107 used_carriers.update( g_processOutputs[p, t, v] ) … … 1408 1408 images_dir = "images_" + datname 1409 1409 1410 if os.path.exists( '%s' % images_dir ): 1411 cmd = ('rm', '-rf', images_dir) 1412 call( cmd ) 1410 if os.path.exists( images_dir ): 1411 rmtree( images_dir ) 1413 1412 1414 1413 os.mkdir( images_dir )
