[Tutor] Packaging questions

Dennis Lee Bieber wlfraed at ix.netcom.com
Mon Dec 13 20:52:23 EST 2021


On Tue, 14 Dec 2021 10:10:20 +1100, Cameron Simpson <cs at cskk.id.au>
declaimed the following:

>with no special actions. If you want "module-run.py" as a command (a) it 
>needs execute permission and (b) it needs to be in your $PATH (on 
>UNIXlike systems).
>
	And just to provide the dark side... On Windows one needs suitable
FTYPE and ASSOC assignments -- eg:

C:\Users\Wulfraed>assoc .py
.py=Python.File

C:\Users\Wulfraed>ftype python.file
python.file="C:\WINDOWS\py.exe" "%L" %*

C:\Users\Wulfraed>py
Python ActivePython 3.8.2 (ActiveState Software Inc.) based on
 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

	Going further, if one doesn't want to provide the .py suffix and just
use "module-run", one needs to add it to the PATHEXT variable (hmm, I need
to clean mine up -- looks like updating Visual Studio added some...)

C:\Users\Wulfraed>set pathext
PATHEXT=.PY;.PY3;.PYC;.PYO;.PYW;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw;.rexx;.rex;.rx

C:\Users\Wulfraed>


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/



More information about the Tutor mailing list