Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 7f748a8a15818dc93d287698c9a6bfb89f72e455 authored by Alexandre Fayolle on 30 September 2009, 10:55:39 UTC, committed by Alexandre Fayolle on 30 September 2009, 10:55:39 UTC
1 parent d3ae518
Raw File
Tip revision: 7f748a8a15818dc93d287698c9a6bfb89f72e455 authored by Alexandre Fayolle on 30 September 2009, 10:55:39 UTC
packaging update
Tip revision: 7f748a8
hgview.bat
@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH
python -x %~f0 %*
goto exit
 
"""
# -------------------- Python section --------------------
from PyQt4 import QtCore, QtGui
import os
import sys
import os.path as pos

try:
    import hgviewlib
except ImportError:
    import stat
    execpath = pos.abspath(__file__)
    # resolve symbolic links
    statinfo = os.lstat(execpath)
    if stat.S_ISLNK(statinfo.st_mode):
        execpath = pos.abspath(pos.join(pos.dirname(execpath),
                                        os.readlink(execpath)))
    sys.path.append(pos.abspath(pos.join(pos.dirname(execpath), "..")))

from hgviewlib.qt4.hgrepoviewer import main 
main()

DosExitLabel = """
:exit
rem """
back to top