Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


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?



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.