By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,986 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,986 IT Pros & Developers. It's quick & easy.

python question!!

P: n/a
hi...

new to python, and can't seem to find an answer to this via google.. of
course i'm not even sure what to callit.. so i might be searching in the
wrong places...

a python script foo.py, can have an import..

foo.py
import dog
import cat

where dog, and cat, might have other "import" statements, and so on..

is there a function/feature/etc.. that i can run on "foo.py" that would walk
through the entire list of files that make up foo.py, so i could see the
list of *.py files that are required to run "foo.py".

this kind of list could then be used to compare my local version of files,
with the files that my group are changing, so i can tell which (if any)
files have been changed for the foo.py app...

thanks
Nov 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 22, 8:23 pm, "bruce" <bedoug...@earthlink.netwrote:
is there a function/feature/etc.. that i can run on "foo.py" that would walk
through the entire list of files that make up foo.py, so i could see the
list of *.py files that are required to run "foo.py".
There's this:
http://www.tarind.com/depgraph.html

It generates a nice chart showing the 'tree' of imports for your
program. I found it valuable for helping me resolve a circular import
problem.
Nov 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.