• Login
Community
  • Login

portable Notepad++ with python scripts

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 2.5k 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.
  • M
    MaDill
    last edited by Mar 14, 2017, 3:56 PM

    I created some scripts with the “Python Script” plugin. For adding some shortcuts to them, I added via “Plugins” > “Python Plugin” > “Configuration” to the menu. The path to this py files are stored absolute. This breaks when I use my portable Notepad++ on other computers. Is there any other option to add shortcuts to python scripts with relative path?

    My scripts are in plugins\Config\PythonScript…

    C 1 Reply Last reply Mar 14, 2017, 9:41 PM Reply Quote 0
    • C
      Claudia Frank @MaDill
      last edited by Mar 14, 2017, 9:41 PM

      @MaDill

      Other than editing PythonScriptStartup.cnf, I don’t think so.
      For example instead of
      ITEM/C:\programs\notepad++\plugins\Config\PythonScript\scripts\lexer.py
      try
      ITEM/.\plugins\Config\PythonScript\scripts\lexer.py

      Seems to work.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • M
        MaDill
        last edited by Mar 15, 2017, 8:32 AM

        @Claudia-Frank

        Thank you. It seems to work. There is a similar issue on github: https://github.com/bruderstein/PythonScript/issues/15

        I added this as a comment there.

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