diff --git a/random_words/random_words.py b/random_words/random_words.py index cac1c72..eb15268 100644 --- a/random_words/random_words.py +++ b/random_words/random_words.py @@ -5,7 +5,7 @@ from random import sample from itertools import chain -main_dir = os.path.split(os.path.abspath(__file__))[0] +main_dir = os.path.dirname(os.path.abspath(__file__)) class Random(dict):