mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-08-03 12:47:01 -04:00
fix demotest
This commit is contained in:
parent
557f3026ed
commit
f475045631
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: macOS Clang
|
||||
os: macos-14
|
||||
os: macos-latest
|
||||
compiler: clang
|
||||
shell: bash
|
||||
|
||||
|
@ -4,7 +4,7 @@ import sys
|
||||
import shutil
|
||||
import subprocess
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
from pathlib import Path, PurePath, PureWindowsPath
|
||||
from zipfile import ZipFile
|
||||
from argparse import ArgumentParser
|
||||
|
||||
@ -87,7 +87,10 @@ def compare_output(record):
|
||||
return True
|
||||
|
||||
def run_program(args):
|
||||
source_port = Path(args.source_port).resolve()
|
||||
source_port = PurePath(args.source_port)
|
||||
if type(source_port) is PureWindowsPath:
|
||||
source_port = source_port.with_suffix('.exe')
|
||||
source_port = Path(source_port).resolve()
|
||||
if not source_port.exists():
|
||||
sys.exit("Doom port is not found.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user