Terry J. Reedy added the comment:

How can you get a relative path in 3.6 (or other current Python)? To test, I 
wrote file.py containing "print(__file__)".  Executing from IDLE, with "python 
path/to/file.py", "path/to/file.py", "file.py" in the path/to directory, and 
"python -m to.file" (where path is on sys.path) all resulted in the absolute 
path.  After adding "input()" to suspend execution, double clicking in Explorer 
gives the same result.  Have I forgotten something? Do any of these result is 
something different on Linux? (or Mac?, for that matter)

The only reason to execute rather than import config.py is to run the test at 
the end of the file after editing the file.  In the absence of a thorough 
automated test, I occasionally do so.

The approximately 500 lines of output is too much to read in detail (although 
one might check one specific part), but that it runs and produces the same 
number of lines before and after a change is reassuring. I should add a line 
counter and checksum to the dump function.

As for removing RemoveFile: idlelib in 3.6 is, with a few exceptions, a private 
API.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27452>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to