use correct path

This commit is contained in:
Jan Rude 2018-09-04 10:54:04 +02:00 committed by GitHub
parent c273f80da8
commit cca05240a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ class EmailHarvester(object):
self.userAgent = userAgent
self.parser = myparser()
self.activeEngine = "None"
path = os.path.join(os.path.dirname(sys.argv[0]) + "/plugins/")
path = os.path.dirname(os.path.abspath(__file__)) + "/plugins/"
plugins = {}
sys.path.insert(0, path)