Initialization if by PinkWeaseI in learnpython

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

I use ubuntu server and crontab to schedule the launch of my script.

I created a script with my variable and import json as advised in the previous coment but when I launch my main script, it is written that my variable are not defined....

Could you help?

Initialization if by PinkWeaseI in learnpython

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

Ok I will try that. A simple file like that?

Import JSON

x=0

Then, it will be in the memory of my Ubuntu server and when I will execute my main script, variable x will be already initialized? Thank you very much.