Fix annoying attibute __file__ not found
Set the __file__
attribute before calling any package method because a
package may need to call something that needs it e.g. prepare()
may
call self.relative_path()
, which uses __file__
. This commit ensures
it's set before calling any method.
Edited by Nirbheek Chauhan