472,145 Members | 1,428 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

python question!!

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
1 1091
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.

Similar topics

14 posts views Thread by 2mc | last post: by
32 posts views Thread by David | last post: by
reply views Thread by bwaha | last post: by
2 posts views Thread by Harry | last post: by
4 posts views Thread by Hoop | last post: by
1 post views Thread by Scheol Service | last post: by
1 post views Thread by Thomas Troeger | last post: by
2 posts views Thread by | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.