UPD: Remove shebang from python scripts to reassure lintian

This commit is contained in:
Alexander Koblov 2015-01-18 11:41:41 +00:00
commit 786dd3f61b
4 changed files with 4 additions and 8 deletions

2
scripts/doublecmd-kde.py Executable file → Normal file
View file

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# Double Commander
# -------------------------------------------------------------------------

2
scripts/rabbit-vcs.py Executable file → Normal file
View file

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# This is an extension to the Double Commander to allow
# integration with the version control systems.

View file

@ -28,7 +28,7 @@ begin
Args := ' openwith';
for I := 0 to FileList.Count - 1 do
Args+= ' ' + QuoteStr(FileList[I]);
Result:= ExecCmdFork(PythonScript + Args);
Result:= ExecCmdFork('python ' + PythonScript + Args);
end;
procedure Initialize;
@ -37,7 +37,7 @@ begin
if UseKde then
begin
PythonScript:= gpExePath + PythonScript;
UseKde:= (fpSystemStatus(PythonScript + ' > /dev/null 2>&1') = 0);
UseKde:= (fpSystemStatus('python ' + PythonScript + ' > /dev/null 2>&1') = 0);
end;
end;

View file

@ -69,7 +69,7 @@ implementation
uses
dbus, unixtype, fpjson, jsonparser, unix,
uGlobs, uGlobsPaths, uPython;
uGlobs, uGlobsPaths, uMyUnix, uPython;
const
MODULE_NAME = 'rabbit-vcs';
@ -112,7 +112,7 @@ begin
Print('Service found running.')
else
begin
Result:= fpSystem(PythonScript) = 0;
Result:= fpSystemStatus('python ' + PythonScript) = 0;
if Result then
Print('Service successfully started.');
end;