diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index ca58b5c2..bd0aec4b 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -104,7 +104,8 @@ class Helpers: @staticmethod def which_java(): - # Adapted from LeeKamentsky's https://github.com/LeeKamentsky/python-javabridge/blob/master/javabridge/locate.py + # Adapted from LeeKamentsky >>> + # https://github.com/LeeKamentsky/python-javabridge/blob/master/javabridge/locate.py jdk_key_paths = ( "SOFTWARE\\JavaSoft\\JDK", "SOFTWARE\\JavaSoft\\Java Development Kit", diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index b28fabb4..0db1871e 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -236,7 +236,8 @@ class ServerInstance: self.server_command = Helpers.cmdparse(self.settings["execution_command"]) if self.helper.is_os_windows() and self.server_command[0] == "java": logger.info( - "Detected nebulous java in start command. Replacing with full java path." + "Detected nebulous java in start command. " + "Replacing with full java path." ) which_java_raw = self.helper.which_java() java_path = which_java_raw + "\\bin\\java" @@ -246,7 +247,8 @@ class ServerInstance: self.server_command[0] = java_path else: logger.critcal( - "Possible attack detected. User attempted to exec java binary from server directory." + "Possible attack detected. User attempted to exec " + "java binary from server directory." ) return self.server_path = Helpers.get_os_understandable_path(self.settings["path"])