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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread 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?


_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux