repo.or.cz
/
zeroinstall.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed error for passing a parameter that wasn't a GTKWindow
[zeroinstall.git]
/
0desktop
blob
9c45d7e7f9a4f5e29e3517ff36bcaaf24d560b89
1
#!/usr/bin/env python
2
3
import
locale
4
from
logging
import
warn
5
try
:
6
locale
.
setlocale
(
locale
.
LC_ALL
,
''
)
7
except
locale
.
Error
:
8
warn
(
'Error setting locale (eg. Invalid locale)'
)
9
10
from
zeroinstall
.
gtkui
import
desktop
11
import
sys
12
desktop
.
main
(
sys
.
argv
[
1
:])