Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
8731e5c3
Kaydet (Commit)
8731e5c3
authored
Eki 07, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
The target directory is now called dos-8x3, not dos_8x3.
üst
04d73c49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
make8x3.py
PC/make8x3.py
+5
-5
No files found.
PC/make8x3.py
Dosyayı görüntüle @
8731e5c3
#! /usr/bin/env python
#! /usr/bin/env python
# This program reads all *.py and test/*.py in "libDir", and
# This program reads all *.py and test/*.py in "libDir", and
# copies those files with illegal DOS names to libDir/dos
_
8x3.
# copies those files with illegal DOS names to libDir/dos
-
8x3.
# Names are illegal if they are longer than 8x3 chars or if they
# Names are illegal if they are longer than 8x3 chars or if they
# contain uppercase chars. It also tests for name collisions.
# contain uppercase chars. It also tests for name collisions.
# You must first create the directory libDir/dos
_
8x3 yourself.
# You must first create the directory libDir/dos
-
8x3 yourself.
# You should remove all files in dos
_
8x3 if you run it again.
# You should remove all files in dos
-
8x3 if you run it again.
# CHANGE libDir TO THE CORRECT DIRECTORY. RM dos
_
8x3/* FIRST.
# CHANGE libDir TO THE CORRECT DIRECTORY. RM dos
-
8x3/* FIRST.
import
sys
,
os
,
regex
,
string
import
sys
,
os
,
regex
,
string
...
@@ -16,7 +16,7 @@ libDir = "./Lib" # Location of Python Lib
...
@@ -16,7 +16,7 @@ libDir = "./Lib" # Location of Python Lib
def
make8x3
():
def
make8x3
():
reg_uppercase
=
regex
.
compile
(
"[A-Z]"
)
reg_uppercase
=
regex
.
compile
(
"[A-Z]"
)
collisions
=
{}
# See if all names are unique in first 8 chars.
collisions
=
{}
# See if all names are unique in first 8 chars.
destDir
=
os
.
path
.
join
(
libDir
,
"dos
_
8x3"
)
destDir
=
os
.
path
.
join
(
libDir
,
"dos
-
8x3"
)
if
not
os
.
path
.
isdir
(
destDir
):
if
not
os
.
path
.
isdir
(
destDir
):
print
"Please create the directory"
,
destDir
,
"first."
print
"Please create the directory"
,
destDir
,
"first."
err
()
err
()
...
...
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