Running File from Notepad Plus Plus and Current Directory
问题 There are a number of examples on the web of how to run a file from the Notepad Plus Plus (NPP). But they all fail to account for the fact that the current working directory is the location of the NPP's executable, and not the location of the file. Usually they go something like this: cmd /K "$(FULL_CURRENT_PATH)" Consider the following Python script: with open('somefile.txt', 'a') as file: file.write('Hello there.\n') This file will be created in the NPP folder, which is not at all what most