[Python.NET] Setup sys.path in Embedded Application
mc at mclaveau
mc at mclaveau
Thu Aug 6 10:38:44 CEST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20150806/8986e332/attachment.html>
More information about the PythonDotNet
mailing list