mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Remove shebang from python scripts to reassure lintian
This commit is contained in:
parent
7a6c04b650
commit
786dd3f61b
4 changed files with 4 additions and 8 deletions
2
scripts/doublecmd-kde.py
Executable file → Normal file
2
scripts/doublecmd-kde.py
Executable file → Normal file
|
|
@ -1,5 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#
|
||||
# Double Commander
|
||||
# -------------------------------------------------------------------------
|
||||
|
|
|
|||
2
scripts/rabbit-vcs.py
Executable file → Normal file
2
scripts/rabbit-vcs.py
Executable file → Normal 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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue