##// END OF EJS Templates
resourceutil: ensure `_rootpath` is defined under py2exe...
Matt Harbison -
r44613:a90039b0 stable
parent child Browse files
Show More
@@ -33,6 +33,7 b' def mainfrozen():'
33 if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
33 if mainfrozen() and getattr(sys, 'frozen', None) != 'macosx_app':
34 # executable version (py2exe) doesn't support __file__
34 # executable version (py2exe) doesn't support __file__
35 datapath = os.path.dirname(pycompat.sysexecutable)
35 datapath = os.path.dirname(pycompat.sysexecutable)
36 _rootpath = os.path.dirname(datapath)
36 else:
37 else:
37 datapath = os.path.dirname(os.path.dirname(pycompat.fsencode(__file__)))
38 datapath = os.path.dirname(os.path.dirname(pycompat.fsencode(__file__)))
38 _rootpath = os.path.dirname(datapath)
39 _rootpath = os.path.dirname(datapath)
General Comments 0
You need to be logged in to leave comments. Login now