Create a module called internal where swigged stuff goes.
Rename cc_main to internal.main --HG-- extra : convert_revision : e938005f600fbf8a43435e29426a948f4501f072
This commit is contained in:
@@ -211,7 +211,7 @@ def parse_args():
|
||||
return opts,args
|
||||
|
||||
def main():
|
||||
import cc_main
|
||||
import internal
|
||||
|
||||
parse_args()
|
||||
|
||||
@@ -249,7 +249,7 @@ def main():
|
||||
print "M5 Simulator System"
|
||||
print brief_copyright
|
||||
print
|
||||
print "M5 compiled %s" % cc_main.cvar.compileDate;
|
||||
print "M5 compiled %s" % internal.main.cvar.compileDate;
|
||||
print "M5 started %s" % datetime.now().ctime()
|
||||
print "M5 executing on %s" % socket.gethostname()
|
||||
print "command line:",
|
||||
@@ -264,7 +264,7 @@ def main():
|
||||
usage(2)
|
||||
|
||||
# tell C++ about output directory
|
||||
cc_main.setOutputDir(options.outdir)
|
||||
internal.main.setOutputDir(options.outdir)
|
||||
|
||||
# update the system path with elements from the -p option
|
||||
sys.path[0:0] = options.path
|
||||
|
||||
Reference in New Issue
Block a user