fix uv scripts module not found
This commit is contained in:
@@ -85,7 +85,7 @@ async def already_claimed(container: Locator):
|
||||
return await container.evaluate(fn)
|
||||
|
||||
|
||||
async def main():
|
||||
async def program():
|
||||
async with async_playwright() as p:
|
||||
context = await launch_context(p, headless=True)
|
||||
|
||||
@@ -189,6 +189,10 @@ async def main():
|
||||
pass
|
||||
|
||||
|
||||
def main(): # uv no main fix
|
||||
asyncio.run(program())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
main()
|
||||
# async, also this file is valid js. */ fn;
|
||||
|
||||
Reference in New Issue
Block a user