devopspp / pyliveupdate

A runtime python code manipulation framework for profiling, debugging and bugfixing
GNU General Public License v3.0
64 stars 10 forks source link

Register module bug #5

Open lyglxz opened 2 years ago

lyglxz commented 2 years ago

The profile module is quite helpful, but the Redefine module has something wrong. For example, if I run a server code located at "~/TechTry/pyliveupdate/examples/test.py" and patcher code located at "~/TechTry/pyliveupdate/examples/my_patcher.py", both "python my_patcher.py" in bash and patch("my_patcher.py" in ocntroller will have error: from TechTry.pyliveupdate.examples.test import whoami ModuleNotFoundError: No module named 'TechTry' It seems the module process dir as module, and this error disappear when I move them to ~.