title: Right-click command pass argument to python script
body: <p>I am rewriting a python script at work and part of what it does is searched inside a folder that I right-click on for image sequences.. The python side of things I think I'm good on, but the right click not so much. I can create a right click button in the regedit but I am unsure of how to pass an argument from where I right-clicked on the folder to my python script. I want the argument to have the path to the folder. I found a post about this but it is not working for me.. maybe because they were making it on xp?? I'm unsure.(Link below)</p>
  
  <p><a href="https://stackoverflow.com/questions/2902279/copy-as-path-in-windows-context-menu">Copy as path in windows context menu</a></p>
  
  <p>I also found this snip-it of code which is what I think was being used before as the richt-click command..</p>
  
  <p>@="\"C:\Python26\python.exe\" \"L:\HAL\Func\search\search.py\" %L"</p>
  
  <p>Can anyone explain this to me? I understand it first is going to run python then run the script.. but what is the @= and the %L for? I really want to understand this and I spent all day yesterday trying to figure it out but I'm just not finding much.
  Thanks in advance for your help :)</p>
  
  <p>This is the python script I want to pass the argument too</p>
  
  <pre><code>import sys
  import os
  
  
  def __main__(argv = sys.argv):
  
      fileName = argv[1]
      print argv
      print fileName
  </code></pre>