Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kscottz committed Apr 18, 2013
2 parents 3de51a0 + ef12835 commit 1d527e7
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 @@ -93,12 +93,7 @@ def __init__(self, directory = None):
super(ImageSet,self).__init__(map(Image, 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 1d527e7

Please sign in to comment.