@Eko-palypse
Thank you for the reply. I tested again and still found the code works for me.
But there is one thing I forgot to mention in my original post.
When I call the NppExec script through shortcut(as opposed to mouse click), the command npp_menucommand "Plugins\Python Script\Scripts\someScript" still runs, but it doesn’t invoke the python script. Instead, it opens that *.py file in notepad++.
Only if I call the same NppExec script by mouse clicking on its menu item, or through NppExec console, will that line of NppExec command invoke the specified python script, as expected.
So, from my point of view, that must be a bug of NppExec. To be more specific, the npp_menucommand command’s bug.
Here’s my versions below, in case anyone with the same versions as mine can reproduce the same peoblem:
My Npp version: Notepad++ v7.5.8
My NppExec version: ver. 0.6 RC2 Unicode for Notepad++
My python script version: 1.0.8.0
NppExec 0.6 RC2 seems to be the newest version, so maybe I will upgrate my python script to 1.3 , to see if that’ll fix the problem, or still have the problem.
And thank you again for the info and solution you provided. I’ll look into that later.