Skip to content

Commit

Permalink
fixed ImageClass.ImageSet
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaydixi committed Apr 18, 2013
1 parent d8610a4 commit ef12835
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions SimpleCV/ImageClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef12835

Please sign in to comment.