Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
Crans Passwords
Commits
bf469de0
Commit
bf469de0
authored
Jul 28, 2013
by
Vincent Le gallic
Browse files
Hack pour avoir le path de la config.
parent
5efd3406
Changes
1
Hide whitespace changes
Inline
Side-by-side
client.py
View file @
bf469de0
...
@@ -25,7 +25,9 @@ except ImportError:
...
@@ -25,7 +25,9 @@ except ImportError:
if
sys
.
stderr
.
isatty
()
and
not
any
([
opt
in
sys
.
argv
for
opt
in
[
"-q"
,
"--quiet"
]]):
if
sys
.
stderr
.
isatty
()
and
not
any
([
opt
in
sys
.
argv
for
opt
in
[
"-q"
,
"--quiet"
]]):
sys
.
stderr
.
write
(
u
"Package python-gnupg introuvable, vous ne pourrez pas vérifiez les clés.
\n
"
.
encode
(
"utf-8"
))
sys
.
stderr
.
write
(
u
"Package python-gnupg introuvable, vous ne pourrez pas vérifiez les clés.
\n
"
.
encode
(
"utf-8"
))
try
:
try
:
sys
.
path
.
append
(
"~/.config/%s/"
%
(
config
.
cmd_name
,))
# Oui, le nom de la commande est dans la config, mais on n'a pas encore accès à la config
bootstrap_cmd_name
=
os
.
path
.
split
(
sys
.
argv
[
0
])[
1
]
sys
.
path
.
append
(
os
.
path
.
expanduser
(
"~/.config/%s/"
%
(
bootstrap_cmd_name
,)))
import
clientconfig
as
config
import
clientconfig
as
config
except
ImportError
:
except
ImportError
:
if
sys
.
stderr
.
isatty
()
and
not
any
([
opt
in
sys
.
argv
for
opt
in
[
"-q"
,
"--quiet"
]]):
if
sys
.
stderr
.
isatty
()
and
not
any
([
opt
in
sys
.
argv
for
opt
in
[
"-q"
,
"--quiet"
]]):
...
@@ -80,7 +82,6 @@ def gpg(command, args = None):
...
@@ -80,7 +82,6 @@ def gpg(command, args = None):
else
:
else
:
stderr
=
subprocess
.
PIPE
stderr
=
subprocess
.
PIPE
full_command
.
extend
([
'--debug-level=1'
])
full_command
.
extend
([
'--debug-level=1'
])
#print full_command
proc
=
subprocess
.
Popen
(
full_command
,
proc
=
subprocess
.
Popen
(
full_command
,
stdin
=
subprocess
.
PIPE
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment