3 Commits

Author SHA1 Message Date
bobo.yang
769666aaac Add function to get application data directory
- Added a new function `get_app_data_dir` in `install.py` to get the application data directory based on the operating system.
- This function checks if the directory exists, if not, it creates the directory.
- Updated the `venvdir` in the `main` function to use this new function, which will now point to the application data directory.
2023-08-21 11:52:00 +08:00
bobo.yang
1e4acd192a Update Python version in virtual environment creation
- Modified the 'virtualenv_create_venv' function in 'install_askcode.py' to specify Python version 3.11.4 when creating a virtual environment.
- This change ensures that the created virtual environment uses the correct Python version.
2023-08-21 11:52:00 +08:00
bobo.yang
5ebeec5f82 Added AskCode Indexing and Installation Scripts
- Created askcode_index_query.py to handle indexing and querying of AskCode.
- Implemented functions to check if a file is modified and if it's a source code file.
- Added functionality to index a given repository path and query a given question.
- Created install_askcode.py to handle the installation of AskCode.
- Implemented functions to install pip, virtualenv, create a virtual environment, and install devchat.
2023-08-21 11:52:00 +08:00