From c017b293baa35ffdf4b42ccc78da394584f45b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 16 Jul 2014 18:27:30 +0200 Subject: [PATCH] Fixed some problems with os.mkdir(). Installation on Linux should be OK now. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c792a54..12ca842 100644 --- a/setup.py +++ b/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."