Does anyone know how to add python and ruby ββlibs as a resource in a dll for deployment? I want to host a script engine in my application, but I do not want to deploy all the standard libraries of the corresponding languages ββin the source files. Is there an easy way to do this so that an import or import request finds embedded resources?
You can add a custom import hook that searches for embedded resources when importing. This is a bit complicated and probably not worth the trouble.
, ScriptEngine sys.modules, . Python, .
StreamContentProviders,
ironrubymvc IronRubyMVC/Core/ , .
AssemblyStreamContentProvider
ContentProvider
IronPython 2.0 has a sample compiler called PYC on Codeplex.com/ironpython that can create DLLs (and applications if you need them).
IronPython 2.6 has a newer version of PYC in the Tools \ script menu.
Cheers, Davy
Source: https://habr.com/ru/post/1709500/More articles:MS-SQL Server 2000 slow full-text indexing - sql-serverRuby on Rails and the restful_authentication plugin - ruby-on-railsHow can I add text instead of replacing while searching and replacing with Perl? - regexCombining XML files with attributes - xmlHelp me get started with OpenGL - iphonehow to make iphone apps like ibeer, imilk, ibug, ibeer - iphonepolymorphism implementation in C #, what is the best way to do this? - polymorphismASP.NET MVC: page-dependent logic - architectureVB.Net code optimization? - vb.netC #: keep size despite different resolution using Graphics.DrawImage - c #All Articles