Python Forum
Close script from another script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close script from another script
#12
In answer to reload, yes you can do that. Don't you have access to the internet?

But it is still a REALLY HORRIBLE IDEA. You should not be writing code to represent data. You should have a file somewhere that contains the number 10. You should have some code that will read the file and return the number. You should have some different code that writes a different number to this file. If you take money out of your wallet you read the number from the file, subtract the withdrawal and write the new value to the wallet. The code to do the transaction does not import the data file, it uses the file as a kind of persistent variable.
Reply


Messages In This Thread
Close script from another script - by ilgrabbo - Jan-20-2021, 10:00 AM
RE: Close script from another script - by ndc85430 - Jan-20-2021, 12:50 PM
RE: Close script from another script - by ilgrabbo - Jan-20-2021, 05:19 PM
RE: Close script from another script - by ilgrabbo - Jan-21-2021, 10:00 AM
RE: Close script from another script - by ilgrabbo - Jan-21-2021, 03:11 PM
RE: Close script from another script - by ilgrabbo - Jan-21-2021, 04:45 PM
RE: Close script from another script - by deanhystad - Jan-21-2021, 07:34 PM
RE: Close script from another script - by ilgrabbo - Jan-22-2021, 09:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Running script from remote to server invisiblemind 4 900 Mar-28-2025, 07:57 AM
Last Post: buran
  Insert command line in script lif 4 1,295 Mar-24-2025, 10:30 PM
Last Post: lif
  modifying a script mackconsult 1 684 Mar-17-2025, 04:13 PM
Last Post: snippsat
  help with a script that adds docstrings and type hints to other scripts rickbunk 2 1,374 Feb-24-2025, 05:12 AM
Last Post: from1991
  Detect if another copy of a script is running from within the script gw1500se 4 1,271 Jan-31-2025, 11:30 PM
Last Post: Skaperen
  pass arguments from bat file to pyhon script from application absolut 2 1,448 Jan-13-2025, 11:05 AM
Last Post: DeaD_EyE
  Best way to feed python script of a file absolut 6 1,392 Jan-11-2025, 07:03 AM
Last Post: Gribouillis
  How to make it so whatever I input into a script gets outputted on a different file spermatozwario 4 1,331 Nov-24-2024, 12:58 PM
Last Post: deanhystad
  [SOLVED] [Linux] Run Python script through cron? Winfried 2 1,383 Oct-19-2024, 06:29 PM
Last Post: Winfried
  Help for Tiktok Script Jasson187512 0 835 Oct-09-2024, 08:42 AM
Last Post: Jasson187512

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020