title: Assigning variable for dynamic filename in Python
body: <p>I am new to python scripting and am required to build a script for WebLogic Server. The requirement is to use a file (type .rpd) from assigned location for deployment. The file type would remain same throughout, however, the file name would change. </p>
  
  <p>Given this condition, I tried the below methods on assigning file to the variable. Both the below methods are not working. </p>
  
  <pre><code>rpdfile = "*.rpd"
  rpdlocation = "/u02/RPD_Upload/"+rpdfile+
  </code></pre>
  
  <p>or</p>
  
  <pre><code>rpdlocation = "/u02/RPD_Upload/*.rpd
  </code></pre>
  
  <p>I get invalid syntax error while running the python. Experts please help me understand on assigning such variables.</p>