Python script accessing own source code
Robin Becker
robin at reportlab.com
Wed May 12 14:41:19 EDT 2021
.......
>
> with open(__file__) as myself:
> print(myself.read(), end='')
very nice, but accessing code that's already seems quite easy. I think the real problem is to get a python script name
that creates and writes itself. So I would ask if any one has the solution to the self writing script
python find-tomorrows-lotto-numbers.py
since GvR has been shown to have time traveling abilities such a script could paradoxically appear acausally.
--
yrs-not-too-seriously
Robin Becker
More information about the Python-list
mailing list