[packages/phpstorm] wrapper: fix restart errors

glen glen at pld-linux.org
Sat Oct 10 01:34:25 CEST 2015


commit 99db2920e52513904beaab4ec01f757ee7b96a1b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Oct 10 02:33:31 2015 +0300

    wrapper: fix restart errors
    
    previous code attempted to restart 'phstorm.sh' which was not in path
    
    + test 88 -ne 88
    + phpstorm.sh
    phpstorm.sh[194]: phpstorm.sh: not found

 phpstorm.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/phpstorm.py b/phpstorm.py
index fc75c88..7abfe96 100755
--- a/phpstorm.py
+++ b/phpstorm.py
@@ -94,6 +94,4 @@ if sys.platform == "darwin":
     os.execvp("open", ["-a", RUN_PATH] + args)
 else:
     # unix common
-    bin_dir, bin_file = os.path.split(RUN_PATH)
-    os.chdir(bin_dir)
-    os.execv(bin_file, [bin_file] + args)
+    os.execv(RUN_PATH, [RUN_PATH] + args)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phpstorm.git/commitdiff/99db2920e52513904beaab4ec01f757ee7b96a1b



More information about the pld-cvs-commit mailing list