Hi everyone,

We're documenting a Python code with doxygen and have just made the 
following observation; Our file looks something like

#! /usr/bin/python3
"""
Comment block
"""
import foo

def main():
        ...
        foo.bar()

Now the call graph of main() doesn't show foo.bar; However if we write
from foo import bar
then it does (as I would expect).


On the other hand, we tried to write another 'minimal example':
==== function.py ====


import a
import b

def function():
    a.function_a()
    b.function_b("HELLO B")



function()
=====================

==== a.py ===========

def function_a():
    print("Function A")
=====================

==== b.py ===========

def function_b(a):
    print(a)
=====================

 From these three files, Doxygen generates a call graph for function() 
that includes both a and b, although we only used the global import 
statement.

Does anyone know why it's not working as expected in our original case?

Cheers,
Fabian.

------------------------------------------------------------------------------
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to