main.py (10134:c36803905607) | main.py (10758:74e7b9b5029c) |
---|---|
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 --- 279 unchanged lines hidden (view full) --- 288 print 289 290 print "gem5 compiled %s" % defines.compileDate; 291 292 print "gem5 started %s" % \ 293 datetime.datetime.now().strftime("%b %e %Y %X") 294 print "gem5 executing on %s" % socket.gethostname() 295 | 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 --- 279 unchanged lines hidden (view full) --- 288 print 289 290 print "gem5 compiled %s" % defines.compileDate; 291 292 print "gem5 started %s" % \ 293 datetime.datetime.now().strftime("%b %e %Y %X") 294 print "gem5 executing on %s" % socket.gethostname() 295 |
296 print "command line:", 297 for argv in sys.argv: 298 print argv, | 296 # in Python 3 pipes.quote() is moved to shlex.quote() 297 import pipes 298 print "command line:", " ".join(map(pipes.quote, sys.argv)) |
299 print 300 301 # check to make sure we can find the listed script 302 if not arguments or not os.path.isfile(arguments[0]): 303 if arguments and not os.path.isfile(arguments[0]): 304 print "Script %s not found" % arguments[0] 305 306 options.usage(2) --- 98 unchanged lines hidden --- | 299 print 300 301 # check to make sure we can find the listed script 302 if not arguments or not os.path.isfile(arguments[0]): 303 if arguments and not os.path.isfile(arguments[0]): 304 print "Script %s not found" % arguments[0] 305 306 options.usage(2) --- 98 unchanged lines hidden --- |