test: Added more tests for glance, b=(no-bug), c=tests, scripts, tabs, glance, workspaces

This commit is contained in:
Mr. M 2025-05-22 16:57:27 +02:00
parent ad124c9d95
commit addc318f29
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18
11 changed files with 197 additions and 273 deletions

View file

@ -5,7 +5,7 @@ from pathlib import Path
def main():
project_root = Path(__file__).resolve().parent
project_root = Path(__file__).resolve().parent.parent
package_json = project_root / 'package.json'
# Ensure script is run from project root
@ -14,10 +14,11 @@ def main():
sys.exit(1)
args = sys.argv[1:]
if not args:
path = ""
else:
path = args[0]
path = ""
for arg in args:
if not arg.startswith("--"):
path = arg
break
# Collect any additional arguments
other_args = [arg for arg in args if arg != path]