newc0mer
02-04-2008, 23:16
Hallo
Ich habe folgende file struktur:
misc
|--> sysinfo.py (mit funktion def gatherSysInfo())
start.py
wenn ich nun in start.py folgendes mache:
import misc
misc.sysinfo.gatherSysInfo()
heisst es AttributeError: 'module' object has no attribute 'sysinfo' wobei ich ja kein attribute sondern die funktion aufrufen möchte...
kann da jemand weiter helfen?
Ich habe folgende file struktur:
misc
|--> sysinfo.py (mit funktion def gatherSysInfo())
start.py
wenn ich nun in start.py folgendes mache:
import misc
misc.sysinfo.gatherSysInfo()
heisst es AttributeError: 'module' object has no attribute 'sysinfo' wobei ich ja kein attribute sondern die funktion aufrufen möchte...
kann da jemand weiter helfen?