From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Python 2 EOL
Date: Sat, 6 Jul 2019 03:38:27 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1907060333270.15309@imap.altlinux.org> (raw)
In-Reply-To: <CAHRK1yN=H7prf+bUe-dBDvidCGhrZ-AZRh8Y2VuzdFU0-47GwA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
Hello!
On Fri, 5 Jul 2019, Vladimir Didenko wrote:
> 2. У нас есть какая-нибудь ручка, которая будет говорить что *.py
> файлы по умолчанию нужно трактовать как Python 3, если не указан
> шебанг?
%add_python3_path your_dir
Хорошо бы, чтобы your-dir совпадала с точкой, относительно которой
указываются имена импортов лежащих там модулей.
Например, если есть код, где Ваш модуль импортируется как a.b.c, то
ожидается, что он будет лежать в your-dir/a/b/c{.py,/__init__.py}
А в /usr/bin/ без шебанга бессмысленно класть скрипты. (Ну это всех
исполняемых скриптов касается в общем. Для них разговор про имя для
импорта может быть бессмысленным, но и без шебанга их держать тоже не
надо.)
--
Best regards,
Ivan
next prev parent reply other threads:[~2019-07-06 0:38 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-04 19:06 Vladimir D. Seleznev
2019-07-04 19:23 ` Michael Shigorin
2019-07-05 7:05 ` Sergey V Turchin
2019-07-05 18:38 ` Vladimir D. Seleznev
2019-07-05 14:16 ` Vladimir Didenko
2019-07-06 0:38 ` Ivan Zakharyaschev [this message]
2019-07-10 13:46 ` Vladimir Didenko
2019-07-10 17:47 ` Ivan Zakharyaschev
2019-07-06 15:20 ` Vladimir D. Seleznev
2019-07-08 7:33 ` Sergey V Turchin
2019-10-20 10:41 ` Sergey Y. Afonin
2019-10-20 14:43 ` Vladimir D. Seleznev
2019-10-20 15:13 ` Ivan Zakharyaschev
2019-10-20 17:52 ` Vladimir D. Seleznev
2019-10-20 18:15 ` Ivan Zakharyaschev
2019-10-20 22:10 ` Vladimir D. Seleznev
2019-10-21 4:55 ` Anton Farygin
2019-10-21 9:51 ` Dmitry V. Levin
2019-10-20 15:26 ` Sergey Y. Afonin
2019-10-20 15:44 ` Антон Мидюков
2019-10-20 17:50 ` Vladimir D. Seleznev
2019-07-05 18:39 ` Vladimir D. Seleznev
2019-07-05 23:58 ` Alexey V. Vissarionov
2019-07-08 7:30 ` Ivan A. Melnikov
2019-07-08 13:35 ` Павел Цильке
2019-07-13 17:42 ` Michael Shigorin
2019-07-14 6:21 ` Alexey V. Vissarionov
2019-07-14 7:32 ` Dmitry V. Levin
2019-07-14 8:00 ` Alexey V. Vissarionov
2019-07-14 8:14 ` Антон Мидюков
2019-07-14 10:16 ` Alexey V. Vissarionov
2019-07-14 18:04 ` Vladimir D. Seleznev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.20.1907060333270.15309@imap.altlinux.org \
--to=imz@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git