-4

If I create a folder in a root directory, where the folder name is generated by a script.py giving it a name with todays date(YYYY-mm-dd). how do I reference that folder from another script (or the same script at a later stage) in the same directory after it's creation?

B.Ahern
  • 27
  • 5

1 Answers1

0

There are several options:

  1. Use today's date to construct the same name in the other script
  2. Have the scripts share a common parent environment or calling script that passes the name to both scripts
  3. Use interprocess communication between the scripts
  4. Have the scripts read the filename from a common location (e.g. a file known to both scripts)
René Pijl
  • 4,310
  • 1
  • 19
  • 25