D7980: resourceutil: ensure `_rootpath` is defined under py2exe

dlax (Denis Laxalde) phabricator at mercurial-scm.org
Fri Jan 24 02:27:19 EST 2020


dlax added inline comments.

INLINE COMMENTS

> resourceutil.py:39
>      datapath = os.path.dirname(os.path.dirname(pycompat.fsencode(__file__)))
>      _rootpath = os.path.dirname(datapath)
>  

`_rootpath` declaration could be moved after the `else` clause to avoid repetition.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7980/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7980

To: mharbison72, #hg-reviewers
Cc: dlax, mercurial-devel


More information about the Mercurial-devel mailing list