OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[Solved][Python] Circular dependencies

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
ishanthilina
General User
General User


Joined: 17 Mar 2012
Posts: 46

PostPosted: Thu Jun 28, 2012 8:51 am    Post subject: [Solved][Python] Circular dependencies Reply with quote

Hi,

I have a folder structure as follows.

Code:
+TopModule.py
+PythonPath
  /---OtherModule.py


(TopModule is in the root of the folder structure and OtherModule is in the pythonpath folder)

I need to import OtherModule from TopModule and TopModule from the OtherModule.

Is this possible..? If yes, how?

Thank you very much!.


Last edited by ishanthilina on Sun Jul 01, 2012 7:33 am; edited 1 time in total
Back to top
View user's profile Send private message
karolus
OOo Advocate
OOo Advocate


Joined: 22 Jun 2011
Posts: 210

PostPosted: Fri Jun 29, 2012 12:17 am    Post subject: Reply with quote

Hallo

Look into Manual http://docs.python.org/tutorial/modules.html#packages and http://docs.python.org/tutorial/modules.html#intra-package-references

Karo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group