setup.py
This commit is contained in:
parent
98bfb5d2a3
commit
92970a83d6
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
@ -19,8 +19,9 @@ def create_etc_dir():
|
||||||
try:
|
try:
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if isinstance(e, PermissionError) \
|
if isinstance(e, PermissionError):
|
||||||
or e.errno == errno.EEXIST and os.path.isdir(path):
|
print('WARNING: Could not create /etc/runbullet')
|
||||||
|
elif e.errno == errno.EEXIST and os.path.isdir(path):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue