D8054: resourceutil: correct the root path for file based lookup under py2exe
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Jan 31 00:10:58 EST 2020
Closed by commit rHGccb719dd1fe3: resourceutil: correct the root path for file based lookup under py2exe (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8054?vs=19732&id=19733
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8054/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8054
AFFECTED FILES
mercurial/utils/resourceutil.py
CHANGE DETAILS
diff --git a/mercurial/utils/resourceutil.py b/mercurial/utils/resourceutil.py
--- a/mercurial/utils/resourceutil.py
+++ b/mercurial/utils/resourceutil.py
@@ -33,7 +33,7 @@
if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
# executable version (py2exe) doesn't support __file__
datapath = os.path.dirname(pycompat.sysexecutable)
- _rootpath = os.path.dirname(datapath)
+ _rootpath = datapath
else:
datapath = os.path.dirname(os.path.dirname(pycompat.fsencode(__file__)))
_rootpath = os.path.dirname(datapath)
To: mharbison72, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list