Skip to content

Commit e2cb329

Browse files
authored
Update myJavapy.py
1 parent 66ee114 commit e2cb329

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

myJavapy.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,10 @@
2424
import subprocess
2525

2626
class 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: ")

0 commit comments

Comments
 (0)