Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I've seen it. It's rubbish." -- Marvin the Paranoid Android


devel / comp.lang.python / Re: Difference in Setup Between Windows 10 Running Python 3.9 and Windows 11 Running Python 3.10

SubjectAuthor
o Re: Difference in Setup Between Windows 10 Running Python 3.9 andEryk Sun

1
Re: Difference in Setup Between Windows 10 Running Python 3.9 and Windows 11 Running Python 3.10

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: eryk...@gmail.com (Eryk Sun)
Newsgroups: comp.lang.python
Subject: Re: Difference in Setup Between Windows 10 Running Python 3.9 and
Windows 11 Running Python 3.10
Date: Tue, 3 May 2022 16:03:43 -0500
Lines: 28
Message-ID: <mailman.305.1651611827.20749.python-list@python.org>
References: <BY5PR12MB416274A42DA24AA327604CD8C6C19@BY5PR12MB4162.namprd12.prod.outlook.com>
<CACL+1as2Y=-ix9DjhkfumgaHfqqkusmBOdaKWvgXjg4ueFzwdg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de okeAuX4ryNpkFOoGCxXnPAGHtZ7Tf1UGWGaZPDOC8W8g==
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=iMJVbmP+;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.024
X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'bunch': 0.05; '"python':
0.07; 'subject:Windows': 0.07; 'cc:addr:python-list': 0.09;
'depend': 0.09; "shouldn't": 0.09; 'subject:Python': 0.12;
'batch': 0.16; 'command.': 0.16; 'directory,': 0.16; 'directory.':
0.16; 'displayed': 0.16; 'removes': 0.16; 'script,': 0.16;
'subject:3.10': 0.16; 'well-known': 0.16; 'wrote:': 0.16;
'python': 0.16; 'cc:addr:python.org': 0.20; 'machine': 0.22;
'command': 0.23; 'run': 0.23; 'cc:2**0': 0.25; 'task': 0.26;
'example,': 0.28; 'recently': 0.29; 'program': 0.31; "doesn't":
0.32; 'fine.': 0.32; 'titled': 0.32; 'message-id:@mail.gmail.com':
0.32; 'unless': 0.32; 'path': 0.33; 'script': 0.33; 'windows':
0.34; 'skip:" 20': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'running': 0.34; 'close': 0.35;
'from:addr:gmail.com': 0.35; 'also,': 0.36; 'files': 0.36;
'using': 0.37; "it's": 0.37; 'received:209.85': 0.37; 'file':
0.38; 'put': 0.38; 'received:209': 0.39; 'single': 0.39; 'use':
0.39; 'something': 0.40; 'should': 0.40; 'best': 0.61; 'search':
0.61; 'initial': 0.61; 'remember': 0.61; "there's": 0.61;
'simply': 0.63; 'research': 0.64; 'full': 0.64; 'skip:o 40': 0.64;
'upon': 0.64; 'box': 0.65; 'day': 0.66; 'worked': 0.67;
'following:': 0.69; 'night.': 0.84; 'subject: \n ': 0.84;
'screen,': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc; bh=D+iqol0IaDMz9S3o0mWYN4RSVwNxN1PYkibAT74i+gQ=;
b=iMJVbmP+O6PqQCleW9EuZBPvcHhsjfsAydlDRenK6UYhzNknn2rCtq8atgX6493laZ
1XjIGrf7UHL++0FoyEizoDLxAXorlittfnnehu2zQtZK9MbLFqEv9wuufO2KXBBaCw7j
1F3CBE6h7IcLUzBDm/MKzGl9oFbam8gwMdZBuCCaEd47Ur0Ykj4eD2J5J4PSiIP5A8eq
SWVfL7LPXI5hXwCebBtM+pY9CVmESmZl6qNWsA0uXu+Ozp7ghDqMI1bhn9OKj8Xb14r1
7Pf/pA93uc1rq3+CYVEB9wxhVFuD6obL2HOOO+J/5oavBzUY21Ld+OvlQYvHMzWknibd
wWCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc;
bh=D+iqol0IaDMz9S3o0mWYN4RSVwNxN1PYkibAT74i+gQ=;
b=0kORVYY1KaXq0YmzQKSN5IIt+jFOwzF9ZAOeZ0PdBAzVehviWusPW2wCVJKOLBr3AA
4PVl9yYhEzXaSwhRXnuxNF8jcIk8XVFAle3XK9oGKXLaRVELsPPV8WIvHF/jVaeGH2pb
cf7/NX4CHSS29cJMWLbMZzJYmEQKlXVVjmiygNDqnX9oCyv8TU3QTalVT1dbcdRZV+fM
HSvOBSJaxJVvCdnqCTxbLM1g9qZbBqE2a8QS53aqIn5dgbtMgsL3bY/1EMwU6e0EcKyR
ZCR0RxZwKjt3vWWMh35ymhyuR5gPTjuoLXMHFOKrnBXA77ZYwS/HV0fheNSIJaXOGj6d
+qew==
X-Gm-Message-State: AOAM5321g+2S3VEF1eTDaRv6Bx6G1A3+wD/LT6Lzvy4c8qS8IDlUvLo7
S4DNtf4XqZVcufKjMqfkefzEHTjjh8ljAiF0TGQ=
X-Google-Smtp-Source: ABdhPJyfEwQl/MTSyhrFb0imY+bjB56pq0Wl94J/HxKxqGyz2bGCx4eWCdO+gCbCkyhKzr4M9gh0j1oeLfBheZZ6bpk=
X-Received: by 2002:a05:6a00:1991:b0:50e:697:53f9 with SMTP id
d17-20020a056a00199100b0050e069753f9mr6664468pfl.22.1651611823982; Tue, 03
May 2022 14:03:43 -0700 (PDT)
In-Reply-To: <BY5PR12MB416274A42DA24AA327604CD8C6C19@BY5PR12MB4162.namprd12.prod.outlook.com>
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+1as2Y=-ix9DjhkfumgaHfqqkusmBOdaKWvgXjg4ueFzwdg@mail.gmail.com>
X-Mailman-Original-References: <BY5PR12MB416274A42DA24AA327604CD8C6C19@BY5PR12MB4162.namprd12.prod.outlook.com>
 by: Eryk Sun - Tue, 3 May 2022 21:03 UTC

On 5/1/22, Brent Hunter <brent@brenthunter.tv> wrote:
>
> I was recently running a Windows 10 machine Python 3.9. I simply created a
> batch file titled "Start-AIG.bat" which simply contained the following:
> "pythonw AIG.py". It started a python program titled "AIG.py" and the
> Python dialog box was displayed on my screen, running all day and night. I
> set up Windows to run this batch file upon startup and it worked fine. I
> remember having to do a bunch of research before I learned that I needed to
> put "pythonw AIG.py" in the batch file as opposed to "python AIG.py".

When running a command at startup, it's best to use the full path of
the application and the full path of any files passed on the command
line. For example, run something like the following:

"path\to\pythonw.exe" "path\to\AIG.py"

This removes any dependency on the search PATH or the current working
directory. Also, the script shouldn't depend on the initial working
directory. Any files that it needs should be in a well-known location,
such as the script directory,
os.path.dirname(os.path.abspath(__file__)).

Also, there's no need to use a batch script just to run a single
command. When you use a batch script, a visible console gets created
for CMD. It doesn't close until CMD exits, which in this case won't be
until pythonw.exe exits, unless you use `START` to run the command
without waiting. It's simpler to just run the command directly using a
shortcut (i.e. LNK file) or the task scheduler.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor