File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 2424import subprocess
2525
2626class MyJavaPy :
27- """
28- This class helps clone a Java repository, remove the .gitignore file,
29- compile specific Java files, and print their locations.
30- """
31-
3227 def __init__ (self ):
33- """
34- Initializes the class with the default Git repository URL.
35- """
3628 self .repo_url = "https://github.com/MrTG-CodeBot/myJava_py.git"
3729
3830 def check_dirpath (self , dirpath ):
39- """
40- Checks if the provided directory exists and creates it if not.
41- Also clones the Git repository to the specified directory and removes the .gitignore file.
42-
43- Args:
44- dirpath (str): The full path to the directory for saving Java files.
45-
46- Returns:
47- None
48- """
49-
5031 try :
5132 if not os .path .exists (dirpath ):
5233 os .makedirs (dirpath )
@@ -79,13 +60,6 @@ def check_dirpath(self, dirpath):
7960 print (f"An error occurred: { e } " )
8061
8162 def run (self ):
82- """
83- Prompts the user for the directory path and calls the check_dirpath function.
84-
85- Returns:
86- None
87- """
88-
8963 while True :
9064 print ("Please input the full path to make the new folder for save the Java files and classes (eg: C:\\ abc\\ Downloads\\ new_folder_name)." )
9165 path = input ("Enter path: " )
You can’t perform that action at this time.
0 commit comments