There was an error while loading. Please reload this page.
1 parent 0d6ea78 commit 2c0b932Copy full SHA for 2c0b932
setup.py
@@ -8,7 +8,10 @@ def rel(*parts):
8
'''returns the relative path to a file wrt to the current directory'''
9
return os.path.abspath(os.path.join(os.path.dirname(__file__), *parts))
10
11
-README = open('README.rst', 'r').read()
+if os.path.isfile('README.rst'):
12
+ README = open('README.rst', 'r').read()
13
+else:
14
+ README = open('README.md', 'r').read()
15
16
with open(rel('webpack_loader', '__init__.py')) as handler:
17
INIT_PY = handler.read()
0 commit comments