
import sys
import os

from robot import run_cli

run_cli(sys.argv[1:] + [os.path.dirname(__file__)])


import sys
import os

from pathlib import Path

from robot import run_cli


if __name__ == '__main__':
    curdir = Path(__file__).parent
    srcdir = curdir / '..' / '..' / 'src'
    run_cli(sys.argv[1:] + ['-P', srcdir.resolve(), curdir])

Fix test runner for acceptance tests
Fix test runner for acceptance tests

  
  import sys
  import os
  
+ from pathlib import Path
+ 
  from robot import run_cli
  
- run_cli(sys.argv[1:] + [os.path.dirname(__file__)])
  
+ if __name__ == '__main__':
+     curdir = Path(__file__).parent
+     srcdir = curdir / '..' / '..' / 'src'
+     run_cli(sys.argv[1:] + ['-P', srcdir.resolve(), curdir])
+ 
Fix test runner for acceptance tests
## Code Before:

import sys
import os

from robot import run_cli

run_cli(sys.argv[1:] + [os.path.dirname(__file__)])

## Instruction:
Fix test runner for acceptance tests
## Code After:

import sys
import os

from pathlib import Path

from robot import run_cli


if __name__ == '__main__':
    curdir = Path(__file__).parent
    srcdir = curdir / '..' / '..' / 'src'
    run_cli(sys.argv[1:] + ['-P', srcdir.resolve(), curdir])
