On Mon, Jan 16, 2012 at 04:48:17PM +0100, Michael Calmer wrote: > > > > > > Do you know where this getPlatform come from? > > > > It's in > > > > client/rhel/rhn-client-tools/src/up2date_client/platform.py > > Ahh, thanks. But this is bad. I would like to use the official platform > module > from python in the same file, but this result in namespace conflicts. > The first path in sys.path is "." which means, that the result of > > from platform import dist > > is a Traceback with ImportError: cannot import name dist > > What do you think about renaming the up2date_client/platform.py to something > like up2date_client/pkgplatform.py ? > > Does anybody have other ideas how to solve this?
Renamed in Spacewalk master and rhn-client-tools-1.7.5-1. Thanks for pointing this issue out. -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel