Revision 963dfc33
b/snf-astakos-app/astakos/im/management/commands/addterms.py | ||
---|---|---|
36 | 36 |
from string import digits, lowercase, uppercase |
37 | 37 |
from uuid import uuid4 |
38 | 38 |
from time import time |
39 |
from os.path import abspath |
|
39 | 40 |
|
40 | 41 |
from django.core.management.base import BaseCommand, CommandError |
41 | 42 |
|
... | ... | |
49 | 50 |
if len(args) != 1: |
50 | 51 |
raise CommandError("Invalid number of arguments") |
51 | 52 |
|
52 |
location = args[0].decode('utf8')
|
|
53 |
location = abspath(args[0].decode('utf8'))
|
|
53 | 54 |
try: |
54 | 55 |
f = open(location, 'r') |
55 | 56 |
except IOError: |
Also available in: Unified diff