1

I want to import a file name which changes daily in python 3

File name >>> filename_{day}.py

from filename_{day} import variable

  • Okay mate, I stumbled on that module with some error and thought i was using the wrong one. now I will check again , thanks . Will let you know if it worked. – Mastermindx33 Jun 23 '21 at 03:29
  • 1
    Does this answer your question? [How to import a module given its name as string?](https://stackoverflow.com/questions/301134/how-to-import-a-module-given-its-name-as-string) Specifically have a look at this answer: https://stackoverflow.com/a/14000967/6400614 – Rahul Bharadwaj Jun 23 '21 at 03:34

0 Answers0