How to define a global file? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to define a global file? (/thread-298.html) Pages:
1
2
|
RE: How to define a global file? - Crimson King - Oct-05-2016 Hey dullboy, The easiest way would be the one you mentioned, using the trace module from the command line: python -m trace --trackcalls your-python-program.pyAnother way would be to create and set your own trace function within your code.[0][1] [0] Set trace docs [1] Trace function example Let us know if that helps. RE: How to define a global file? - dullboy - Oct-05-2016 (Oct-05-2016, 01:23 PM)Crimson King Wrote: Hey dullboy, I think what you suggested works for me. It turns out that it is pretty simple. Thanks |