mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Made config path correct; Deleted unnecessary stuff; Beautified outpout; Plugin version now correct;
Changes: - config path will always be correct - deleted unnexessary stuff - plugin version will display now correct - changed some formating - created SFTP check before launching
This commit is contained in:
@@ -6,6 +6,7 @@ import requests
|
||||
|
||||
from utils.consoleoutput import oColors
|
||||
from handlers.handle_config import checkConfig
|
||||
from handlers.handle_sftp import createSFTPConnection
|
||||
|
||||
|
||||
def getHelp():
|
||||
@@ -45,12 +46,13 @@ def apiTest():
|
||||
def check_requirements():
|
||||
apiTest()
|
||||
check_local_plugin_folder()
|
||||
# sftp test
|
||||
if not checkConfig().localPluginFolder:
|
||||
createSFTPConnection()
|
||||
|
||||
|
||||
def createTempPluginFolder():
|
||||
tempPluginFolder = ".\\plugins"
|
||||
if not os.path.isdir(tempPluginFolder):
|
||||
#print(oColors.brightRed + "Plugin folder coulnd*t be found. Creating one..." + oColors.standardWhite)
|
||||
try:
|
||||
os.mkdir(tempPluginFolder)
|
||||
except OSError:
|
||||
|
||||
Reference in New Issue
Block a user