mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -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)
|
||||
|
||||
def DeleteCVS(dir):
|
||||
if dir == ".": dir = "."
|
||||
for entry in os.listdir(dir):
|
||||
if (entry != ".") and (entry != ".."):
|
||||
subdir = dir + "/" + entry
|
||||
|
Loading…
x
Reference in New Issue
Block a user