Updated to use absolute path in get_courses()

parent 44c3d627
......@@ -68,7 +68,8 @@ def get_courses():
Returns a list of all valid courses
with open('course.lp', 'r') as fil:
path = get_package_dir() + '/' + 'course.lp'
with open(path, 'r') as fil:
valid_courses = re.findall('[a-z]+[0-9][0-9V][0-9]{2}', fil.read())
return valid_courses
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment