File: win32-start-solfege.pyw

package info (click to toggle)
solfege 3.16.4-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,472 kB
  • ctags: 5,287
  • sloc: python: 22,642; xml: 14,196; ansic: 4,682; makefile: 621; sh: 287
file content (16 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
import sys
from subprocess import Popen

sys.path.append("../share/solfege")
from solfege import winlang

lang = winlang.win32_get_langenviron()
if lang and (lang != 'system default'):
    os.environ['LANGUAGE'] = lang

# We need to set PYTHONHOME because if not, and the user has set it,
# we will run the users locally and maybe buggy python modules instead
# of the included ones.
os.environ['PYTHONHOME'] = os.getcwdu()
Popen([r"pythonw.exe", "solfege"] + sys.argv[1:])