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):
|
class InstallCmd(install):
|
||||||
def run(self):
|
def run(self):
|
||||||
# prepare icons directories
|
# prepare icons directories
|
||||||
|
try:
|
||||||
os.makedirs('desktop/icons/scalable')
|
os.makedirs('desktop/icons/scalable')
|
||||||
|
except os.error:
|
||||||
|
pass
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
'desktop/can-icon.svg', 'desktop/icons/scalable/pybitmessage.svg')
|
'desktop/can-icon.svg', 'desktop/icons/scalable/pybitmessage.svg')
|
||||||
|
try:
|
||||||
os.makedirs('desktop/icons/24x24')
|
os.makedirs('desktop/icons/24x24')
|
||||||
|
except os.error:
|
||||||
|
pass
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
'desktop/icon24.png', 'desktop/icons/24x24/pybitmessage.png')
|
'desktop/icon24.png', 'desktop/icons/24x24/pybitmessage.png')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user