We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c3f445 commit 73d1911Copy full SHA for 73d1911
setup.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/env python3
2
3
import re
4
+import os.path
5
import shutil
6
import sys
7
@@ -13,7 +14,8 @@ def get_dist(pkgname):
13
14
except DistributionNotFound:
15
return None
16
-shutil.copyfile('imgp', 'imgp.py')
17
+if os.path.isfile('imgp'):
18
+ shutil.copyfile('imgp', 'imgp.py')
19
20
with open('imgp.py', encoding='utf-8') as f:
21
version = re.search('_VERSION_ = \'([^\']+)\'', f.read()).group(1)
0 commit comments