main.py (4054:3d617b3be4fa) main.py (4074:f2c4afa8cd46)
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

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

287 on_flags.append(flag)
288
289 for flag in on_flags:
290 internal.trace.set(flag)
291
292 for flag in off_flags:
293 internal.trace.clear(flag)
294
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

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

287 on_flags.append(flag)
288
289 for flag in on_flags:
290 internal.trace.set(flag)
291
292 for flag in off_flags:
293 internal.trace.clear(flag)
294
295 if options.trace_start is not None:
296 internal.trace.enabled = False
295 if options.trace_start:
297 def enable_trace():
296 def enable_trace():
298 internal.event.enabled = True
299 internal.event.create(enable_trace, options.trace_start)
297 internal.trace.cvar.enabled = True
298 internal.event.create(enable_trace, int(options.trace_start))
299 else:
300 internal.trace.enabled = True
300
301 internal.trace.output(options.trace_file)
302
303 for ignore in options.trace_ignore:
304 internal.trace.ignore(ignore)
305
306 sys.argv = arguments
307 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path

--- 33 unchanged lines hidden ---
301
302 internal.trace.output(options.trace_file)
303
304 for ignore in options.trace_ignore:
305 internal.trace.ignore(ignore)
306
307 sys.argv = arguments
308 sys.path = [ os.path.dirname(sys.argv[0]) ] + sys.path

--- 33 unchanged lines hidden ---