Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

* UNIX is a Trademark of Bell Laboratories.


devel / comp.lang.python / Re: PythonPath / sys.path

SubjectAuthor
o Re: PythonPath / sys.pathEryk Sun

1
Re: PythonPath / sys.path

<mailman.66.1684102375.13552.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27643&group=comp.lang.python#27643

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: eryksun@gmail.com (Eryk Sun)
Newsgroups: comp.lang.python
Subject: Re: PythonPath / sys.path
Date: Sun, 14 May 2023 17:12:52 -0500
Lines: 28
Message-ID: <mailman.66.1684102375.13552.python-list@python.org>
References: <645F69AC.14631.33F7F4@RealGrizzlyAdams.vivaldi.net>
<CACL+1au2vHj-4oTzx8d6LdO=6+w0N219F3JOHXmVJKtKpqNOfg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de p0ju95c+FQbUo+SyClqrLQIg2lKqfsYsY79aW3gVtWQQ==
Return-Path: <eryksun@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=OEza+m8O;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'library.': 0.05;
'searching': 0.05; 'used.': 0.07; 'cc:addr:python-list': 0.09;
'options,': 0.09; 'skip:[ 60': 0.09; 'cc:no real name:2**0': 0.14;
'help,': 0.14; 'supported': 0.15; '(both': 0.16; 'appended': 0.16;
'command-line': 0.16; 'difference,': 0.16; 'directories': 0.16;
'hand,': 0.16; 'interpreter': 0.16; 'variables,': 0.16; 'wrote:':
0.16; 'python': 0.16; "can't": 0.17; 'cc:addr:python.org': 0.20;
'option': 0.20; 'i.e.': 0.22; 'run': 0.23; 'cc:2**0': 0.25;
'tried': 0.26; "isn't": 0.27; 'settings': 0.28; 'environment':
0.29; 'default': 0.31; 'module': 0.31; 'python-list': 0.32;
'message-id:@mail.gmail.com': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'running': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'received:209.85':
0.37; 'file': 0.38; 'received:209': 0.39; 'adding': 0.39; 'still':
0.40; 'happen': 0.40; 'including': 0.60; 'above': 0.62; 'key':
0.64; 'extend': 0.64; 'thus': 0.64; 'well': 0.65; 'site': 0.70;
'ignore': 0.71; 'landmark': 0.84; 'received:209.85.167.177': 0.84;
'received:mail-oi1-f177.google.com': 0.84; 'skip:" 50': 0.84;
'adams': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20221208; t=1684102373; x=1686694373;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=d14gh+GxQjs3bT4qqWJrVS8fhyYVoPYAO4iSoraEMP8=;
b=OEza+m8OO+hGYvEHnNn1ioZRE6cL+RW6YanM+tj3V7KH5N29EVVpz7oD9+P2J+P12q
UBvU9lWJVBbBi6x/gHIIXYPVP3ruhCjPaLezEv0gJyuD1FLu8lXRwynwcNCifPnrEN3K
tpmJve956NJ9Frd0jyQKHdhNR86TL5uAMt3xckIKmSZx1tilkdvcUQHJqtWwPjtLmspb
DxdziQC8upP1k6qZBl1IR3sVaGVEC83uAdEMNYHh2XV63MVVMZISIuu0jccV4afK4JnS
29dgTQqfMNUHgosQRVAF54tRqc0QH9C/xefgMu5y7BYrR7VOo2vXfPX4hLK5elf9TD0O
IVGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1684102373; x=1686694373;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=d14gh+GxQjs3bT4qqWJrVS8fhyYVoPYAO4iSoraEMP8=;
b=cCOX6svgy87kizLsfKTfCMuNIqq3ti7QolgQKZkOu8f/gKGQikmPkL54bYpZAVzlGz
Vy7vvdSi+Ee5pc4SbzMgYjJI1LPR18OHxcFR0M1MlvFyDNiSNYMWenkqY+pAhXONvmyp
nGgi5SBQ9frK+oyHD8CvADWEsdTSud8KUBo8EInJ1f8UZd4HikbcYNABu3JlXqpuWWfH
EdpxnhIZRwkCyNa0tEckZU2/1YGoR51PSew9wOAOEuBw0fL7mQEdSiEnJLztRQeDZL5p
RuvphmXR/lLwS0iOgZIGMjoHMYklekFqBLtHgK11Ib3SHtekYmWikVHf2qzgTkQK3P+1
sYmg==
X-Gm-Message-State: AC+VfDxecv6lpf2y+yuUoXhnkmVuAI794N87+xAEnReNx9MSw/+d/Txs
H5Qe5eKZnShjgKX2zNlVLTNo1CGNEfgb0V/T8iY=
X-Google-Smtp-Source: ACHHUZ5QBjdJXXmWQtP0NcaGOP66MppnJtshSZaN0E/GYOM5cTema1lt1ZCQ5WKb6Ftwc/2/s1ECYnmcaAvLZIImFnQ=
X-Received: by 2002:a05:6808:246:b0:38e:285e:99ec with SMTP id
m6-20020a056808024600b0038e285e99ecmr9598440oie.4.1684102372800; Sun, 14 May
2023 15:12:52 -0700 (PDT)
In-Reply-To: <645F69AC.14631.33F7F4@RealGrizzlyAdams.vivaldi.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CACL+1au2vHj-4oTzx8d6LdO=6+w0N219F3JOHXmVJKtKpqNOfg@mail.gmail.com>
X-Mailman-Original-References: <645F69AC.14631.33F7F4@RealGrizzlyAdams.vivaldi.net>
 by: Eryk Sun - Sun, 14 May 2023 22:12 UTC

On 5/13/23, Grizzy Adams via Python-list <python-list@python.org> wrote:
>
> I have tried adding my dir in registry to the existing PythonPath
>
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.4\PythonPath]
> @="D:\\Shades\\Tools\\Python\\Lib;D:\\Shades\\Tools\\Python\\DLLs"
>
> that did not help,

The default value of the above registry key is only used if Python
can't calculate the default sys.path based on searching for "os.py",
the landmark module in the standard library. This can happen sometimes
when Python is embedded or run from a symlink.

The default value of each subkey of
"[HKCU|HKLM]\Software\Python\PythonCore\<version>\PythonPath", on the
other hand, usually does extend sys.path. Except that running Python
with the -E or -I command-line options (both supported by Python 3.4)
makes the interpreter ignore PYTHON* environment variables, including
PYTHONPATH, as well as registry settings such as subkeys of
"PythonPath".

Even with the -E or -I command-line options, .pth files in the system
site-packages are still processed. A .pth file can be used to extend
sys.path as long as the site module is imported, i.e. as long as the
-S command-line option isn't used. One difference, however, is that
directories in .pth files are appended to sys.path and thus do not
override the standard library.


devel / comp.lang.python / Re: PythonPath / sys.path

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor