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
Benjamin Graillot
scripts
Commits
5ac048db
Commit
5ac048db
authored
Sep 10, 2007
by
salles
Browse files
On évite de laisser trainer un fichier vide.
darcs-hash:20070910053148-72cb0-0bf74316bb0a16039286b4d8f690f8682e41c428.gz
parent
401551ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
munin/batiments
View file @
5ac048db
...
...
@@ -38,7 +38,7 @@ if arg == "config" :
print
'total.label Total'
elif
arg
==
"fichier"
:
file
=
open
(
fichier
,
'w'
)
file
=
open
(
'%s.next'
%
fichier
,
'w'
)
sys
.
path
.
append
(
'/usr/scripts/gestion'
)
from
ldap_crans
import
crans_ldap
...
...
@@ -60,5 +60,6 @@ elif arg == "fichier" :
file
.
write
(
"total.value %d
\n
"
%
total
)
file
.
close
()
os
.
system
(
'mv %s.next %s'
%
(
fichier
,
fichier
))
else
:
os
.
system
(
'cat %s'
%
fichier
)
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