Re: [Python.NET] Setup sys.path in Embedded Application

Daniel Fernandez <[email protected]>
Newsgroups gmane.comp.python.dotnet
Message-ID <[email protected]>
Hi,
Thanks for the input. I wanted my bootstrapper for my C# application to setup Python Engine but I guess I could create like a startup script that it calls to sys path and anything else I need to. 
Thanks.
Danny

To: [email protected]
From: mclaveau mc-tjJk92TOoMZWk0Htik3J/[email protected]
Date: Thu, 6 Aug 2015 10:38:44 +0200
Subject: Re: [Python.NET] Setup sys.path in Embedded Application


  
    
  
  
    Le 03.08.15 23:33, Daniel Fernandez a
      écrit :

    
    
      
      
      
      
        Hi Everyone,
         
        I’m looking at embedding python in my .NET
          app. I was wondering what is the best practice for adding
          additional paths to the sys.path? I want the standard python
          sys path but additional paths for my own python scripts. Do I
          just Py.Import(“sys”) and then add it there or is there some
          other way?
        Thanks.
        Danny
      
    
    

    Hi!

    

    Had you try : 

        sys.path.append(myPathDir)

    at beginning of your scripts?

    

    @-salutations

    -- 

    Michel Claveau 

    

    

  


_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet

_________________________________________________
Python.NET mailing list - [email protected]
https://mail.python.org/mailman/listinfo/pythondotnet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.