Commit 963dfc33 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

force absolute path in addterms command

Refs: #2019
parent 586967c0
......@@ -36,6 +36,7 @@ from random import choice
from string import digits, lowercase, uppercase
from uuid import uuid4
from time import time
from os.path import abspath
from import BaseCommand, CommandError
......@@ -49,7 +50,7 @@ class Command(BaseCommand):
if len(args) != 1:
raise CommandError("Invalid number of arguments")
location = args[0].decode('utf8')
location = abspath(args[0].decode('utf8'))
f = open(location, 'r')
except IOError:
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