Menu

Run Python Script from Command Line

Hamed
2019-08-28
2019-08-30
  • Hamed

    Hamed - 2019-08-28

    Hello ,
    I'm trying to understand how I can open a text file and run a python script from command line , is this possible ?

    Looking for something like this :
    ex : notepad++ file.txt -script python_script.py

    I'm using the same with some other applications that supports script flag for I'm not sure how is this really possible with this plugin and Npp . can you please advice on this , aslo I'm open to any other ideas that can help me to do this .

    Thanks.

     
    • Sasumner

      Sasumner - 2019-08-29

      I don't think it is reasonably possible, but let me ask you WHY this is important to you? I'm an extensive Pythonscript user and have never wanted/needed to do that.

       
  • Hamed

    Hamed - 2019-08-29

    I'm an animation Pipeline TD and this is a kind of regular workflow we have for all applications that supporting python , in this case I need to do bunch of string manipulation in a file and need to open the file and run a python script and this is part of automated process with bunch of other pre/post scripts.
    Do you think about any other solution for this ?

     
    • Sasumner

      Sasumner - 2019-08-30

      Well, why not just use straight Python without Notepad++ to do manipulation on these files? That would fit better in a "batch" situation like you describe. Or would the Pythonscripts use the power of Notepad++ to do something to the text that it would be difficult to duplicate in straight Python?

       

Log in to post a comment.