fixed bug where path was only relative.

This commit is contained in:
Rudi Grinberg 2012-11-19 16:05:26 -05:00
parent 8dd0d80f68
commit 9d04204389
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
import re
from media.saas.launcher import setup_logger, setup_global, MM2
from media.saas.airtimeinstance import AirtimeInstance
from os.path import isdir, join, abspath
from os.path import isdir, join, abspath, exists
from os import listdir
def list_dirs(d): return (x for x in listdir(d) if isdir(x))
def list_dirs(d): return (x for x in listdir(d) if isdir(join(d,x)))
def filter_instance(d): return bool(re.match('.+/\d+$',d))