Share variable between two python text DAT

Hello all.

My question is very simple! How can I quickly share python variables and objects in the same project (of course reboot python when starting the project) with two different text DATs? This does not seem to work :frowning:

Thanks!

You can do this a number of ways. All of the following would work for your example:

print(op("text1").module.x)
import text1
print(text1.x)

^^syntax highlighting is off on that one, but it is correct…

print(text1.module.x)
3 Likes
1 Like

Thank you all! :slight_smile:

It worked! Thanks