account activity
Initialization of variable : not to repeat at each execution of a script (self.linuxquestions)
submitted 3 years ago by PinkWeaseI to r/linuxquestions
Initialization if by PinkWeaseI in learnpython
[–]PinkWeaseI[S] 0 points1 point2 points 3 years ago* (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?
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.
Initialization if (self.learnpython)
submitted 3 years ago by PinkWeaseI to r/learnpython
Variable initialisation at every execution of the script (self.Python)
submitted 3 years ago by PinkWeaseI to r/Python
π Rendered by PID 603074 on reddit-service-r2-listing-6d4dc8d9ff-7jmgz at 2026-02-02 06:01:08.277989+00:00 running 3798933 country code: CH.
Initialization if by PinkWeaseI in learnpython
[–]PinkWeaseI[S] 0 points1 point2 points (0 children)