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
Preserve stack-traces when re-throwing errors
[zeroinstall.git]
/
0install
blob
eac74e78bf4f3213e96f733d6710f8ab85d16a28
1
#!/usr/bin/env python
2
import
sys
3
if
sys
.
version_info
[
0
] >
2
:
4
import
os
5
os
.
execvp
(
"python2"
, [
"python2"
] +
sys
.
argv
)
6
7
import
locale
8
from
logging
import
warn
9
try
:
10
locale
.
setlocale
(
locale
.
LC_ALL
,
''
)
11
except
locale
.
Error
:
12
warn
(
'Error setting locale (eg. Invalid locale)'
)
13
14
## PATH ##
15
16
from
zeroinstall
.
cmd
import
main
17
import
sys
18
main
(
sys
.
argv
[
1
:])