Fix developer UI not finding source folder

This commit is contained in:
daijro 2024-08-13 22:14:59 -05:00
parent 8aadd3e1f2
commit 2ac5351fd5
2 changed files with 3 additions and 2 deletions

View file

@ -94,7 +94,7 @@ build:
cd $(cf_source_dir) && ./mach build
edits:
python ./scripts/developer.py
python ./scripts/developer.py $(version) $(release)
check-arch:
@if ! echo "x86_64 i686 arm64" | grep -qw "$(arch)"; then \

View file

@ -6,6 +6,7 @@ GUI for managing Camoufox patches.
import os
import re
import sys
import easygui
from _mixin import find_src_dir, list_patches, patch, run, temp_cd
@ -16,7 +17,7 @@ def into_camoufox_dir():
this_script = os.path.dirname(os.path.abspath(__file__))
# Go one directory up from the current script path
os.chdir(os.path.dirname(this_script))
os.chdir(find_src_dir('.'))
os.chdir(find_src_dir('.', version=sys.argv[1], release=sys.argv[2]))
def reset_camoufox():