diff --git a/source_code/v1.1.0/Ultra Backup.py b/source_code/v1.1.0/Ultra Backup.py index 2b1e872..6cf73a8 100644 --- a/source_code/v1.1.0/Ultra Backup.py +++ b/source_code/v1.1.0/Ultra Backup.py @@ -3,7 +3,7 @@ from cryptography.fernet import Fernet as fn import json from win32com.client import Dispatch -from win32com.shell import shell, shellcon +from win32com.client import shell, shellcon import createCryptic as cb import updateCryptic as ub @@ -31,7 +31,7 @@ def createShortcut(path, target='', wDir='', icon=''): #code taken from: https://www.blog.pythonlibrary.org/2010/01/23/using-python-to-create-shortcuts/ ext = path[-3:] # AUTHOR: @driscollis thanking him for the wonderful tutorial in creating a shortcut in python. if ext == 'url': - shortcut = file(path, 'w') + shortcut.file(path, 'w') shortcut.write('[InternetShortcut]\n') shortcut.write('URL=%s' % target) shortcut.close() @@ -756,4 +756,4 @@ def mainMenu(): data = file2.read() file2.close() USER = json.loads(fn("CB9rESpkfeU_IPqgOQlR2MKjVIq3jWg3orr-H4XZRwE=".encode()).decrypt(data))['User'] - mainMenu() \ No newline at end of file + mainMenu()