JustTesting,

one way to do this from within python itself would be to use the site module with pth files to monkeypatch the code in question. This would amount to patching it each time it gets started, not modifying the python file permanently, and without having to touch the original python code at all.

This write-up goes into more details and also links to this (unmaintained) tool for doing so.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • khanakhh
  • DreamBathrooms
  • ethstaker
  • magazineikmin
  • osvaldo12
  • Durango
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • mdbf
  • kavyap
  • InstantRegret
  • normalnudes
  • megavids
  • thenastyranch
  • modclub
  • tacticalgear
  • GTA5RPClips
  • everett
  • tester
  • cubers
  • provamag3
  • anitta
  • cisconetworking
  • Leos
  • JUstTest
  • lostlight
  • All magazines