-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakepy.bat
More file actions
41 lines (31 loc) · 842 Bytes
/
makepy.bat
File metadata and controls
41 lines (31 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
:: Author: Brady Setser
@echo off
setlocal enabledelayedexpansion
:: Set the directory name
set "directoryName=Python"
:: Determine the full path
set "directoryPath=%APPDATA%\Godot\app_userdata\C-Scope\%directoryName%"
:: Create the directory if it doesn't exist
if not exist "!directoryPath!" (
mkdir "!directoryPath!"
if errorlevel 1 (
echo Failed to create the directory.
goto :EOF
) else (
echo Directory created successfully.
)
)
:: Copy files to the Python directory
copy "Python/courses.py" "!directoryPath!"
copy "Python/submission.py" "!directoryPath!"
if errorlevel 1 (
echo Failed to copy files to the Python directory.
) else (
echo Files copied successfully.
)
python --version
pip --version
python.exe -m pip install --upgrade pip
python --version
pip --version
endlocal