mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
[svn] Added os.path.isDir prior to os.listdir. Otherwise Julians server
through lots of errors. No idea why Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8191 by julian @ 1/18/2009 9:08 PM
This commit is contained in:
parent
99ab1e22e9
commit
39ab4d2514
@ -10,7 +10,7 @@ def listdir(*path):
|
||||
root = os.path.join(settings.FILES, *strippedpath )
|
||||
l = ""
|
||||
#l = root + "\n"
|
||||
#isdir = os.path.isdir(root)
|
||||
isdir = os.path.isdir(root) #This seems to be required for os.path.isdir to work...
|
||||
#l += str(isdir) + "\n"
|
||||
for p in os.listdir(root):
|
||||
if os.path.isdir(os.path.join(root, p)):
|
||||
|
Loading…
Reference in New Issue
Block a user