Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision c03dc026ce892c944bfd635bcb93dca2f3ed0edc authored by Pierre-Yves David on 07 August 2012, 09:13:49 UTC, committed by Pierre-Yves David on 07 August 2012, 09:13:49 UTC
Thanks to jcristau we change the build process from all wrong to all good \o/
1 parent a1f5274
Tip revision: c03dc026ce892c944bfd635bcb93dca2f3ed0edc authored by Pierre-Yves David on 07 August 2012, 09:13:49 UTC
[pkg/debian] fix doc building process
[pkg/debian] fix doc building process
Tip revision: c03dc02
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.application import main
main()
DosExitLabel = """
:exit
rem """
Computing file changes ...