Page MenuHomePhabricator

resourceutil: ensure `_rootpath` is defined under py2exe
ClosedPublic

Authored by mharbison72 on Jan 24 2020, 1:43 AM.

Details

Summary

Can't even run hg version without this.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Jan 24 2020, 1:43 AM
dlax added a subscriber: dlax.Jan 24 2020, 2:27 AM
dlax added inline comments.
mercurial/utils/resourceutil.py
39

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

mharbison72 added inline comments.Jan 24 2020, 8:25 AM
mercurial/utils/resourceutil.py
39

Works for me, if someone wants to fix inflight.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.