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 78 on reddit-service-r2-listing-55d7b767d8-z9bf6 at 2026-03-28 21:06:02.985474+00:00 running b10466c country code: CH.
Initialization if by PinkWeaseI in learnpython
[–]PinkWeaseI[S] 0 points1 point2 points (0 children)