|
Revision 1687, 0.7 kB
(checked in by rob, 6 weeks ago)
|
|
Fixed #449: peppy batch file can now properly handle spaces in install path
|
| Line | |
|---|
| 1 | @echo off
|
|---|
| 2 | rem = """-*-Python-*- script
|
|---|
| 3 | rem Windows batch script based on pylint's batch scripts
|
|---|
| 4 | rem Don't know how this works, but it does.
|
|---|
| 5 | rem
|
|---|
| 6 | rem -------------------- DOS section --------------------
|
|---|
| 7 | rem You could set PYTHONPATH or TK environment variables here
|
|---|
| 8 | python -x "%~f0" %*
|
|---|
| 9 | goto exit
|
|---|
| 10 |
|
|---|
| 11 | """
|
|---|
| 12 | # -------------------- Python section --------------------
|
|---|
| 13 | import os,sys
|
|---|
| 14 |
|
|---|
| 15 | # Set default translation as a no-op for the moment (the actual translation is
|
|---|
| 16 | # performed on-demand during the GUI creation, not at application start time).
|
|---|
| 17 | import __builtin__
|
|---|
| 18 | __builtin__._ = unicode
|
|---|
| 19 |
|
|---|
| 20 | import peppy.main
|
|---|
| 21 |
|
|---|
| 22 | peppy.main.main()
|
|---|
| 23 |
|
|---|
| 24 | DosExitLabel = """
|
|---|
| 25 | :exit
|
|---|
| 26 | rem """
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|