setup.py check if directory already exists
This commit is contained in:
parent
680cc2cafc
commit
abea17ded9
6
setup.py
6
setup.py
|
@ -11,10 +11,16 @@ from src.version import softwareVersion
|
|||
class InstallCmd(install):
|
||||
def run(self):
|
||||
# prepare icons directories
|
||||
try:
|
||||
os.makedirs('desktop/icons/scalable')
|
||||
except os.error:
|
||||
pass
|
||||
shutil.copyfile(
|
||||
'desktop/can-icon.svg', 'desktop/icons/scalable/pybitmessage.svg')
|
||||
try:
|
||||
os.makedirs('desktop/icons/24x24')
|
||||
except os.error:
|
||||
pass
|
||||
shutil.copyfile(
|
||||
'desktop/icon24.png', 'desktop/icons/24x24/pybitmessage.png')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user