From ef12835cc56c5f1d262336db9c3de93b168faa4d Mon Sep 17 00:00:00 2001 From: Akshay Dixit Date: Thu, 18 Apr 2013 06:45:45 +0530 Subject: [PATCH] fixed ImageClass.ImageSet --- SimpleCV/ImageClass.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SimpleCV/ImageClass.py b/SimpleCV/ImageClass.py index 3a91575b0..674ccdd0e 100644 --- a/SimpleCV/ImageClass.py +++ b/SimpleCV/ImageClass.py @@ -88,12 +88,7 @@ def __init__(self, directory = None): if isinstance(directory,list): super(ImageSet,self).__init__(directory) elif directory.lower() == 'samples' or directory.lower() == 'sample': - pth = __init__file__ - - if sys.platform.lower() == 'win32' or sys.platform.lower() == 'win64': - pth = pth.split('\\')[-2] - else: - pth = pth.split('/')[-2] + pth = LAUNCH_PATH pth = os.path.realpath(pth) directory = os.path.join(pth, 'sampleimages') self.load(directory)