Nytro Posted September 16, 2020 Report Posted September 16, 2020 Zolom C# Executable with embedded Python that can be used reflectively to run python code on systems without Python installed Usage zolom.exe --script:"from random import seed; from random import random; seed(1); print 'getting random number'; print random();" zolom.exe --b64script:"ZnJvbSByYW5kb20gaW1wb3J0IHNlZWQ7IGZyb20gcmFuZG9tIGltcG9ydCByYW5kb207IHNlZWQoMSk7IHByaW50ICdnZXR0aW5nIHJhbmRvbSBudW1iZXInOyBwcmludCByYW5kb20oKTs=" Building Using Visual Studio restore the nuget packages and then click build. Adding more modules Unzip the Lib.zip file and add your modules, rezip the file and embed as a resource, finally recompile and your new lib should be available Sursa: https://github.com/checkymander/Zolom 1 Quote
gigiRoman Posted September 16, 2020 Report Posted September 16, 2020 Asta vorbeam si eu cu un baiat, nu stiu daca are cont pe rst. C# are o chestie foarte puternica: poate rula scripting engine, gen fara sa ai limbajul de scripting instalat pe masina, vezi cazul de fata python. ScriptEngine engine = Python.CreateEngine(); Da. Si fix de zolom era vorba. ;)))) Recomand si cartea https://www.manning.com/books/metaprogramming-in-dot-net 1 Quote