print(local_path+"/src/reg_gen.py") #returns C:\Users\user\Desktop\prog\Repositories/program/src/reg_gen.py
print(path+"/registry") #returns C:/Program Files/program/registry
try:
subprocess.call(f'copy {local_path+"/src/reg_gen.py"} {path+"/registry"}')
except subprocess.CalledProcessError as e:
print("Error: " + str(e)) #returns FileNotFoundError: [WinError 2] The file cannot be found
Traceback says:
Traceback (most recent call last):
File "c:\Users\user\Desktop\prog\Repositories\program\install.py", line 41, in <module>
subprocess.call(f'copy {local_path+"/src/reg_gen.py"} {path+"/registry"}')
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,