Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Determining Dependencies

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


gslindstrom at gmail

Dec 6, 2007, 11:48 AM

Post #1 of 1 (20 views)
Permalink
Determining Dependencies

Hello All-

I have a Python routine consisting of 75 or more files (most files house 1
object) and would like to know if there is an automated way to search though
the files and determine all of the (non-standard lib) modules required to
run the routine. For example, looking in my base class I can see that I
need cx_Oracle and odbc, but there are many files to go through which
increases the chance for errors.

The flip side of this is that the code has gone through many revisions and I
would like to know if all of the modules being brought in are actually being
used in a given file. If I'm not using it I don't want to bring it in.

Worst case is we go though each file manually. I was just curious if there
is a better way.

Thanks,
--greg

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.