[IronPython] engine.ImportSite(); broken in RC2

Dino Viehland dinov at exchange.microsoft.com
Mon Aug 21 20:31:11 CEST 2006

This has moved to just being engine.Import("site") after you make sure you have site on your path.  Basically this has moved into the console code:

        private static void ImportSite(PythonEngine engine) {
            if (!ConsoleOptions.ImportSite)
            string site = System.Reflection.Assembly.GetExecutingAssembly().Location;
            site = Path.Combine(Path.GetDirectoryName(site), "Lib");
            try {
            } catch (Exception e) {
                MyConsole.Write(engine.FormatException(e), Style.Error);

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Stanislas Pinte
Sent: Monday, August 21, 2006 9:17 AM
To: Discussion of IronPython
Subject: [IronPython] engine.ImportSite(); broken in RC2


could you please tell me what happened to engine.ImportSite();, and what should I change in my code to get same behaviour?



   Stanislas Pinte             e-mail: stan at ertmssolutions.com
   ERTMS Solutions               http://www.ertmssolutions.com
   Rue de l'Autonomie, 1             Tel:    + 322 - 522.06.63
   1070        Bruxelles              Fax:   + 322 - 522.09.30
   Skype (http://www.skype.com) id:                  stanpinte

users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list