Fixed some problems with os.mkdir(). Installation on Linux should be OK now.
This commit is contained in:
parent
f287a8c5e6
commit
c017b293ba
1 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
@ -15,7 +15,7 @@ class CustomInstall(install):
|
|||
if sys.platform != 'win32' and sys.platform != 'darwin':
|
||||
try:
|
||||
print "Creating shared directory..."
|
||||
os.mkdir("/usr/local/share/jsoninspector", mode = 0755)
|
||||
os.mkdir("/usr/local/share/jsoninspector", 0755)
|
||||
|
||||
except:
|
||||
if not os.path.exists("/usr/local/share/jsoninspector"):
|
||||
|
@ -74,7 +74,7 @@ class CustomInstall(install):
|
|||
|
||||
try:
|
||||
print "Installing glade file..."
|
||||
shutil.copyfile('res/jsoninspector.glade', '/usr/local/share/jsoninspector/jsoninspector.desktop')
|
||||
shutil.copyfile('res/jsoninspector.glade', '/usr/local/share/jsoninspector/jsoninspector.glade')
|
||||
|
||||
except:
|
||||
print "Warning: error copying .glade file."
|
||||
|
|
Loading…
Reference in a new issue