But now I want to delete it and every time I delete the folder manually by going to the folder and run the tryond-admin command afterwards it says:
FileNotFoundError: No such file or directory: 'D:\\#PROJECTS\\#GitRepos\\Tryton\\tryton\\trytond\\trytond\\modules\\library\\tryton.cfg'
Is there any proper way to completely dispose the module. For instance, even if I delete the content inside the folder as long as I am keeping .cfg file it still allows me to use trytond-admin command to install other modules. However, if I delete the folder from trytond/modules it give me this error.
After messing with the code a little I found out that this setup.py has this entry point. Back there it was something like library = trytond.modules.library
but now I changed it to trytond_library = trytond.modules.trytond_library and for some reason it is giving me the same error message but this time with “trytond_trytond” missing.
Is there’s anyway to reverse the damange I’ve done?
In my opinion, you need to add symbolic links of the library folder from trytond/modules/ to the actual folder containing the module code. For example you have the trainning-trytond_library located in /home/someone/work/trainning-trytond_library, hence you should have a symbolic link named trytond_library inside trytond/modules pointing to /home/someone/work/trainning-trytond_library
Hence if you remove the actual folder, you may also need to make sure the symbolic link is removed. This is just my guess to your problem. Can you check if you see any broken links in the trytond/modules folder?
Yeah! I just fixed it. Instead of using a different symbolic-link/directory “training-trytond_library” to simply “library” and seems like it is working for now.
I only reason why I wanted to do this in the first place is because I’ve got a directory for my “local_modules” which is seperated from the “modules” (for better organization)