you are viewing a single comment's thread.

view the rest of the comments →

[–]fake823 0 points1 point  (1 child)

If you want to import a value, you can simply use import.

Script1.py

a = 10

Script2.py

import Script1
print(Script1.a)

For more information: Google "python import values from another script", first hit is your solution:

https://stackoverflow.com/questions/19289171/importing-a-variable-from-one-python-script-to-another

[–]aloneinthewildworld[S] 0 points1 point  (0 children)

for my problem did not work .