update:
solved, I was using the function for the old version of python
in reality the famous variable X that must be updated would be a "wallet" variable, that is, if the test1.py performs an operation and "spends" money the wallet is empty so file2 and file3 cannot buy until the wallet is full again, let's say my idea was a common wallet for three separate scripts.
but I partially solved the problem, but a further problem arises and question, is it possible to import the module again?
in the sense, I import a module, this is modified by the code, can I re-import the module so that it is updated?
is a sort of "reload" of the imported module possible?
solved, I was using the function for the old version of python
in reality the famous variable X that must be updated would be a "wallet" variable, that is, if the test1.py performs an operation and "spends" money the wallet is empty so file2 and file3 cannot buy until the wallet is full again, let's say my idea was a common wallet for three separate scripts.
but I partially solved the problem, but a further problem arises and question, is it possible to import the module again?
in the sense, I import a module, this is modified by the code, can I re-import the module so that it is updated?
is a sort of "reload" of the imported module possible?