Код: Выделить всё
I have a code file for a game, and various mods of the game have been created (which affect that code file). The previous solution to this running mods is to have a separate full code file for each mod (even if only one line has been changed in the file).
I want to be able to insert the modified code/sections of code into that main code file, which would thus allow me to apply multiple mods at once (as long as the modifications do not affect the same area of code).
Я также рассматривал возможность размещения комментариев с идентификаторами в основной скрипт и файл Python могут искать их и заменять то, что находится между ними. Это решение действительно работает, но я надеюсь найти лучшее решение, так как будет сложно добавлять комментарии каждый раз, когда к параметрам добавляется новый мод. Я готов использовать это решение, если нет хорошей альтернативы.
Подробнее здесь: https://stackoverflow.com/questions/792 ... -larger-fi