Port modules away from __file__

* __file__ won't work if we want to invoke modules via -m or if we
  figure out how to keep modules from hitting the disk with pipelining.
* module.tmpdir is the new way to place a file where it will be cleaned
  automatically.

Change format string to not depend on __file__:

* cloud/amazon/ec2_elb_lb.py
* cloud/amazon/elb_classic_lb.py

Use module.tempdir:

* packaging/os/apt.py
* files/unarchive.py
This commit is contained in:
Toshio Kuratomi
2018-06-20 06:35:27 -07:00
parent c227a0c8bb
commit 9350a81ae4
5 changed files with 12 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
---
minor_changes:
- The apt, ec2_elb_lb, elb_classic_lb, and unarchive modules have been ported
away from using __file__. This is futureproofing as__file__ won't work if we
switch to using python -m to invoke modules in the future or if we figure out
a way to make a module never touch disk for pipelining purposes.