Deleted Added
sdiff udiff text old ( 2739:977887750573 ) new ( 2740:1c2058745499 )
full compact
1# Copyright (c) 2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 93 unchanged lines hidden (view full) ---

102# make a SmartDict out of the OS environment too
103env = smartdict.SmartDict()
104env.update(os.environ)
105
106
107# Function to provide to C++ so it can look up instances based on paths
108def resolveSimObject(name):
109 obj = config.instanceDict[name]
110 return obj.getCCObject()
111
112# The final hook to generate .ini files. Called from the user script
113# once the config is built.
114def instantiate(root):
115 config.ticks_per_sec = float(root.clock.frequency)
116 # ugly temporary hack to get output to config.ini
117 sys.stdout = file('config.ini', 'w')
118 root.print_ini()

--- 28 unchanged lines hidden ---