How to install Python modules needed by plugins?
Alexander Belchenko
bialix at ukr.net
Wed Mar 9 09:21:13 UTC 2011
John Arbash Meinel пишет:
>> After almost 5 years of standalone installer went to the wild I'm still
>> not sure what's the best.
>
> I think tweaking the standalone installer to include another path in the
> default sys.path would be reasonable.
>
> Something like:
>
> C:\Program Files\Bazaar\site-packages
>
> I don't know if it can easily be done as part of bzr-windows-installers.
> But certainly we could put in 'bzr':
>
> if sys.frozen and sys.platform == 'windows':
> sys.path.append(os.path.join(os.path.dirname(sys.executable),
> 'site-packages'))
>
> What do you think?
That will work though the if clause actually should be
if getattr(sys, 'frozen', None) is not None and sys.platform ==
'windows':
sys.path.append(os.path.join(os.path.dirname(sys.executable),
'site-packages'))
and perhaps constructing the path require some changes too, I don't
remember off-hand.
But that way should work, yep.
More information about the bazaar
mailing list