fix dirname import

This commit is contained in:
ofek
2017-01-23 01:11:00 -05:00
parent a8e443e94b
commit 41c813369f
+2 -8
View File
@@ -1,19 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
import sys
import codecs
from os.path import dirname
from setuptools import setup
try:
# Python 3
from os import dirname
except ImportError:
# Python 2
from os.path import dirname
here = os.path.abspath(dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: