[TriLUG] Python site-packages problems on FC3

Brent Verner brent at rcfile.org
Wed May 25 12:11:26 EDT 2005


| I wanted to move the three modules into a namespace, say 'ns'. So I
| made a directory '/usr/lib/python2.3/site-packages/ns' and move the
| three py files there. Then I modified my main routine to import
| 'ns.X', 'ns.Y', and 'ns.Z' from simply 'X', 'Y', and 'Z'.

	I _think_ you want to say

	from ns import X
	from ns import Y

or even

  from ns import *
	
instead of

  import ns.X

hth
	b




More information about the TriLUG mailing list