|
1 | 1 | # A PowerShell script to run all Python samples in the folder, one after the other.
|
| 2 | +$python = if ($env:OS -eq "Windows_NT") { "python" } else { "python3" } |
2 | 3 |
|
3 | 4 | Write-Host "===> sample_analyze_all_image_file.py"
|
4 |
| -Start-Process -NoNewWindow -Wait python sample_analyze_all_image_file.py |
| 5 | +Start-Process -NoNewWindow -Wait $python sample_analyze_all_image_file.py |
5 | 6 |
|
6 | 7 | Write-Host "===> sample_caption_image_file.py"
|
7 |
| -Start-Process -NoNewWindow -Wait python sample_caption_image_file.py |
| 8 | +Start-Process -NoNewWindow -Wait $python sample_caption_image_file.py |
8 | 9 |
|
9 | 10 | Write-Host "===> sample_caption_image_file_async.py"
|
10 |
| -Start-Process -NoNewWindow -Wait python async_samples/sample_caption_image_file_async.py |
| 11 | +Start-Process -NoNewWindow -Wait $python async_samples/sample_caption_image_file_async.py |
11 | 12 |
|
12 | 13 | Write-Host "===> sample_caption_image_url.py"
|
13 |
| -Start-Process -NoNewWindow -Wait python sample_caption_image_url.py |
| 14 | +Start-Process -NoNewWindow -Wait $python sample_caption_image_url.py |
14 | 15 |
|
15 | 16 | Write-Host "===> sample_dense_captions_image_file.py"
|
16 |
| -Start-Process -NoNewWindow -Wait python sample_dense_captions_image_file.py |
| 17 | +Start-Process -NoNewWindow -Wait $python sample_dense_captions_image_file.py |
17 | 18 |
|
18 | 19 | Write-Host "===> sample_objects_image_file.py"
|
19 |
| -Start-Process -NoNewWindow -Wait python sample_objects_image_file.py |
| 20 | +Start-Process -NoNewWindow -Wait $python sample_objects_image_file.py |
20 | 21 |
|
21 | 22 | Write-Host "===> sample_ocr_image_file.py"
|
22 |
| -Start-Process -NoNewWindow -Wait python sample_ocr_image_file.py |
| 23 | +Start-Process -NoNewWindow -Wait $python sample_ocr_image_file.py |
23 | 24 |
|
24 | 25 | Write-Host "===> sample_ocr_image_url.py"
|
25 |
| -Start-Process -NoNewWindow -Wait python sample_ocr_image_url.py |
| 26 | +Start-Process -NoNewWindow -Wait $python sample_ocr_image_url.py |
26 | 27 |
|
27 | 28 | Write-Host "===> sample_ocr_image_url_async.py"
|
28 |
| -Start-Process -NoNewWindow -Wait python async_samples/sample_ocr_image_url_async.py |
| 29 | +Start-Process -NoNewWindow -Wait $python async_samples/sample_ocr_image_url_async.py |
29 | 30 |
|
30 | 31 | Write-Host "===> sample_people_image_file.py"
|
31 |
| -Start-Process -NoNewWindow -Wait python sample_people_image_file.py |
| 32 | +Start-Process -NoNewWindow -Wait $python sample_people_image_file.py |
32 | 33 |
|
33 | 34 | Write-Host "===> sample_smart_crops_image_file.py"
|
34 |
| -Start-Process -NoNewWindow -Wait python sample_smart_crops_image_file.py |
| 35 | +Start-Process -NoNewWindow -Wait $python sample_smart_crops_image_file.py |
35 | 36 |
|
36 | 37 | Write-Host "===> sample_tags_image_file.py"
|
37 |
| -Start-Process -NoNewWindow -Wait python sample_tags_image_file.py |
| 38 | +Start-Process -NoNewWindow -Wait $python sample_tags_image_file.py |
0 commit comments