title: error code trying to copy a file with shutil in python
body: <p>I'm a valorant player and I wanted to create a very basic Python script that is going to switch accounts for me (because you have to  actually start the game so you can do so).</p>
  <p>Unfortunately the script returns an error that I can't understand and that's why I'm asking you to help me.</p>
  <p>here is the code:
  <a href="https://i.stack.imgur.com/833KK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/833KK.png" alt="" /></a></p>
  <pre><code>import os
  from shutil import copyfile
  
  account = input(&quot;enter account &gt;&gt;&gt;&quot;)
  
  def accountlog(account):
      file_nameaccount = r&quot;C:/Users/lcc_zarkos/AppData/Local/Riot Games/Riot Client/Data/RiotClientPrivateSettings_&quot;,account
      file_name = r&quot;C:/Users/lcc_zarkos/AppData/Local/Riot Games/Riot Client/Data/RiotClientPrivateSettings&quot;
      copyfile(file_nameaccount,file_name)
  
  accountlog(account)
  os.system(r&quot;C:/Riot Games/Riot Client/RiotClientServices.exe&quot;)
  </code></pre>
  <p>the output is in the image</p>
  <p>Basically the launcher stores a file called RiotClientPrivateSettings (that I deleted but I am sure that's not why the script is not working) <a href="https://i.stack.imgur.com/t9qUE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t9qUE.png" alt="" /></a> that stores account data and for each account there is another file.
  the python script is going to replace the RiotClientPrivateSettings file by the other account one which is going to make me login on the other account.</p>