Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
257fb114
Kaydet (Commit)
257fb114
authored
Agu 19, 2017
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
updater: replace whitespace in dir names and strip the extra win dir layer
Change-Id: I543b903157d44038468eb4d92261dfd0d8b2909b
üst
5daa3a1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tools.py
bin/update/tools.py
+6
-1
No files found.
bin/update/tools.py
Dosyayı görüntüle @
257fb114
...
...
@@ -20,7 +20,12 @@ def uncompress_file_to_dir(compressed_file, uncompress_dir):
zip_file
=
zipfile
.
ZipFile
(
compressed_file
)
zip_file
.
extractall
(
uncompress_dir
)
zip_file
.
close
()
pass
uncompress_dir
=
os
.
path
.
join
(
uncompress_dir
,
os
.
listdir
(
uncompress_dir
)[
0
])
if
" "
in
os
.
listdir
(
uncompress_dir
)[
0
]:
print
(
"replacing whitespace in directory name"
)
os
.
rename
(
os
.
path
.
join
(
uncompress_dir
,
os
.
listdir
(
uncompress_dir
)[
0
]),
os
.
path
.
join
(
uncompress_dir
,
os
.
listdir
(
uncompress_dir
)[
0
]
.
replace
(
" "
,
"_"
)))
else
:
print
(
"Error: unknown extension "
+
extension
)
...
...
Write
Preview
Markdown
is supported
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