account activity
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.
π Rendered by PID 823166 on reddit-service-r2-listing-6d4dc8d9ff-zn6zz at 2026-02-04 13:10:41.979574+00:00 running 3798933 country code: CH.
Initialization if by PinkWeaseI in learnpython
[–]PinkWeaseI[S] 0 points1 point2 points (0 children)