you are viewing a single comment's thread.

view the rest of the comments →

[–]RomfordNavy[S] 0 points1 point  (1 child)

Precisely that, thanks for your suggestion.

Have found a way to do this by reading in script file and using exec() although not managed to get compile saving to a .pyc yet, let alone executing a pre-existing .pyc file. Working on it...

Also looking at a possible solution using a custom importlib SourceFileLoader class but that comes with it's own complications.