[Libreoffice-commits] core.git: Access2Base - Support API from Python

Jean-Pierre Ledure jp at ledure.be
Wed Aug 14 10:19:10 UTC 2019


Indeed the module should be imported and not executed directly.

=> The #!/usr/bin/python[3] shebang line should be deleted.

Thanks. JP

Le 14/08/19 à 11:27, Stephan Bergmann a écrit :
>
> Any answer for the shebang question (repeated below)?
>
>>> diff --git a/wizards/source/access2base/access2base.py 
>>> b/wizards/source/access2base/access2base.py
>>> new file mode 100644
>>> index 000000000000..ce20e70e210a
>>> --- /dev/null
>>> +++ b/wizards/source/access2base/access2base.py
>>> @@ -0,0 +1,1448 @@
>>> +#!/usr/bin/python
>>
>> Seeing follow-up 
>> <https://gerrit.libreoffice.org/plugins/gitiles/core/+/36432802bc955bed05fb87bef8053bd3b06411f0%5E!/> 
>> "fix shebang of wizards/source/access2base/access2base.py": Does it 
>> even make sense to have a shebang line, so that it can be executed 
>> directly?  The docstring below suggests that it should be imported as 
>> a Python library, so wouldn't need one?
>
>


More information about the LibreOffice mailing list