diff options
author | pjenvey <none@none> | 2006-06-01 20:29:43 -0700 |
---|---|---|
committer | pjenvey <none@none> | 2006-06-01 20:29:43 -0700 |
commit | f6870289c18a3e1a70f913edf647d8b0347df268 (patch) | |
tree | 48c02adb38b52c05e1666b7c52385a90bfac0b30 | |
parent | 0c1fdf7968bf136f14cd3192affbb0d0ed53c775 (diff) | |
download | routes-f6870289c18a3e1a70f913edf647d8b0347df268.tar.gz |
[svn] os.path.join instead of hardcoding '/'
--HG--
branch : trunk
-rw-r--r-- | routes/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/util.py b/routes/util.py index 14b88a8..319027d 100644 --- a/routes/util.py +++ b/routes/util.py @@ -146,7 +146,7 @@ def controller_scan(directory): def find_controllers(dirname, prefix=''): controllers = [] for fname in os.listdir(dirname): - filename = dirname + '/' + fname + filename = os.path.join(dirname, fname) if os.path.isfile(filename) and re.match('^[^_]{1,1}.*\.py$', fname): controllers.append(prefix + fname[:-3]) elif os.path.isdir(filename): |