From: Samuele P. <pe...@in...> - 2000-10-19 12:30:26
|
Sorry, I read Finn mail too quickly. I think the point is clear but better to clarify: [Finn] > Right, I think I understand now. The list of module would then look > like: > > module_list = ['x', 'x.y'] > > and the code that look for java packages would then look like this: > > if module_list != None: > if modName in module_list: > # here modName is not a java package, so there > # is no need to try an expensive forName(modName) > # across the network. > return null > // do normal java package load here. My idea for the import logic is as follows: if modName in module_list: load compiled modName class else: do sys.path py loading unless sys.path is empty do java package load here (both classpath and sys.path) regards, Samuele. |