
import platform
from shutil import copyfile
from os.path import isfile
source_file = None


if platform.system() == "Windows":
    possible_files = [
        "Windows/Release/RSNative.pyd",
        "Windows/x64/Release/RSNative.pyd",
    ]
    target_location = "RSNative.pyd"
    
elif platform.system() == "Linux":
    possible_files = [
        "Linux/RSNative.so"
    ]
    target_location = "RSNative.so"

for file in possible_files:
    if isfile(file):
        source_file = file

if source_file:
    copyfile(source_file, target_file)



import platform
from shutil import copyfile
from os.path import isfile
source_file = None


if platform.system() == "Windows":
    possible_files = [
        "Windows/Release/RSNative.pyd",
        "Windows/x64/Release/RSNative.pyd",
    ]
    target_location = "RSNative.pyd"

elif platform.system() == "Linux":
    possible_files = [
        "Linux/RSNative.so"
    ]
    target_location = "RSNative.so"

for file in possible_files:
    if isfile(file):
        source_file = file

if source_file:
    copyfile(source_file, target_location)

Fix typo in build system
Fix typo in build system

  
  import platform
  from shutil import copyfile
  from os.path import isfile
  source_file = None
  
  
  if platform.system() == "Windows":
      possible_files = [
          "Windows/Release/RSNative.pyd",
          "Windows/x64/Release/RSNative.pyd",
      ]
      target_location = "RSNative.pyd"
-     
+ 
  elif platform.system() == "Linux":
      possible_files = [
          "Linux/RSNative.so"
      ]
      target_location = "RSNative.so"
  
  for file in possible_files:
      if isfile(file):
          source_file = file
  
  if source_file:
-     copyfile(source_file, target_file)
+     copyfile(source_file, target_location)
  
- 
Fix typo in build system
## Code Before:

import platform
from shutil import copyfile
from os.path import isfile
source_file = None


if platform.system() == "Windows":
    possible_files = [
        "Windows/Release/RSNative.pyd",
        "Windows/x64/Release/RSNative.pyd",
    ]
    target_location = "RSNative.pyd"
    
elif platform.system() == "Linux":
    possible_files = [
        "Linux/RSNative.so"
    ]
    target_location = "RSNative.so"

for file in possible_files:
    if isfile(file):
        source_file = file

if source_file:
    copyfile(source_file, target_file)


## Instruction:
Fix typo in build system
## Code After:

import platform
from shutil import copyfile
from os.path import isfile
source_file = None


if platform.system() == "Windows":
    possible_files = [
        "Windows/Release/RSNative.pyd",
        "Windows/x64/Release/RSNative.pyd",
    ]
    target_location = "RSNative.pyd"

elif platform.system() == "Linux":
    possible_files = [
        "Linux/RSNative.so"
    ]
    target_location = "RSNative.so"

for file in possible_files:
    if isfile(file):
        source_file = file

if source_file:
    copyfile(source_file, target_location)
