Browse Source

provide arg so we don't use a global...

[git-p4: depot-paths = "//depot/": change = 759]
replace/4e84fdb41ea781c7a8f872baa423e8b3be4045a7
John-Mark Gurney 19 years ago
parent
commit
2a31553021
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pymediaserv

+ 2
- 2
pymediaserv View File

@@ -90,7 +90,7 @@ medianode.contentTypes.update( {
root.putChild('media', medianode)

# Set up media files
def addFSPath(parent, dpath):
def addFSPath(cds, parent, dpath):
dlist = os.listdir(dpath)
dlist.sort()
for i in dlist:
@@ -124,7 +124,7 @@ def addFSPath(parent, dpath):
except KeyError:
pass

addFSPath('0', 'media')
addFSPath(cds, '0', 'media')

site = server.Site(root)
reactor.listenTCP(listenPort, site)


||||||
x
 
000:0
Loading…
Cancel
Save