Community
    • Login

    Python script plugin does't show my script after save it

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Hellena CrainicuH
      Hellena Crainicu
      last edited by

      I made a Python script, I save it as newpython.py in c:\Program Files\Notepad++\plugins\PythonScript\scripts\.

      Now, I want to run it, but cannot find it…

      10635153-8df2-46f9-b06d-d5389a83e06f-image.png https://snipboard.io/lNdVp5.jpg

      1 Reply Last reply Reply Quote 0
      • Hellena CrainicuH
        Hellena Crainicu
        last edited by

        I find the answer. I must use the Installed Version of Notepad++, not the Portable Version as to work.

        1 Reply Last reply Reply Quote 0
        • Alan KilbornA
          Alan Kilborn
          last edited by

          I must use the Installed Version of Notepad++, not the Portable Version as to work.

          Lest other readers of this thread believe it, it is not true.

          I made a Python script

          Well, how exactly did you do this?

          If you did Plugins > Python Script > New Script, and give your script a name and some lines of code, after you Save it for the first time you can go to Plugins > Python Script > Scripts and it will be shown there.

          However, if you create a new .py file in the ...\plugins\Config\PythonScript\scripts\ folder in some other way, it will not show up in the menus until after you restart Notepad++.

          Using the New Script method, there’s an automatic way for the plugin to know to modify the menus right away. Using any other method – how could it know? At startup of N++ (and thus the plugin), it scans the scripts folder to build the menus the initial time, so it finds all existing scripts at that time.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors