Author Topic: Modules called  (Read 1313 times)

Offline gtillmon

  • Posts: 20
  • Cookies: 0
Modules called
« on: February 19, 2009, 08:43:31 PM »
Hi.
I would like to know if there is a way to create a file of all the modules that are called and put them in a file?
I use the consoletracker.py, but it is showoing some errors but it does not specify which module is being called.

Thanks

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Modules called
« Reply #1 on: February 20, 2009, 12:13:00 PM »
I'm not entirely sure why you would want to know this.

Any method is inherently flawed because it won't affect the executable (part of the .exe) side of things, and the executable will also call out to several modules.


Generally speaking, an error is tracked from the moment it occurs all the way to the top most place of invocation, in all cases this ends at the executable, in the end it always does.


But, all the modules that are loaded can be found in the modules dictionary in the sys module.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline gtillmon

  • Posts: 20
  • Cookies: 0
Re: Modules called
« Reply #2 on: February 21, 2009, 08:21:15 AM »
I want to know this because I keep getting messages like:  attribute error.
I want to track htem down and fix them.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Modules called
« Reply #3 on: February 21, 2009, 08:40:07 AM »
I think I fixed most of them. But they are on another PC ATM.

Aside from that, they can't mess things up. And it's the executable directly calling those functions.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.