mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix DeleteCVS when the argument is an empty string
This commit is contained in:
parent
b93529a96e
commit
b115bba5de
@ -533,6 +533,7 @@ def ConditionalWriteFile(dest,desiredcontents):
|
|||||||
WriteFile(dest,desiredcontents)
|
WriteFile(dest,desiredcontents)
|
||||||
|
|
||||||
def DeleteCVS(dir):
|
def DeleteCVS(dir):
|
||||||
|
if dir == ".": dir = "."
|
||||||
for entry in os.listdir(dir):
|
for entry in os.listdir(dir):
|
||||||
if (entry != ".") and (entry != ".."):
|
if (entry != ".") and (entry != ".."):
|
||||||
subdir = dir + "/" + entry
|
subdir = dir + "/" + entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user