Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi committed Oct 2, 2019
1 parent 1dc9c11 commit 53d0f83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions BlenderUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(self, parent=None):
# FIXME - should be changed! (preliminary fix to work in OSX)
ssl._create_default_https_context = ssl._create_unverified_context
try:
testConnection = requests.get("http://www.github.com")
_ = requests.get("http://www.github.com")
except Exception:
QtWidgets.QMessageBox.critical(
self, "Error", "Please check your internet connection"
Expand Down Expand Up @@ -485,7 +485,6 @@ def filterwindows():
def download(self, version, variation):
"""Download routines."""
global dir_
global filename
url = "https://builder.blender.org/download/" + version
if version == installedversion:
reply = QtWidgets.QMessageBox.question(
Expand Down Expand Up @@ -603,19 +602,19 @@ def done(self):
self.btn_execute.clicked.connect(self.exec_linux)

def exec_windows(self):
p = subprocess.Popen(os.path.join('"' + dir_ + "\\blender.exe" + '"'))
_ = subprocess.Popen(os.path.join('"' + dir_ + "\\blender.exe" + '"'))
logger.info(f"Executing {dir_}blender.exe")

def exec_osx(self):
BlenderOSXPath = os.path.join(
'"' + dir_ + "\\blender.app/Contents/MacOS/blender" + '"'
)
os.system("chmod +x " + BlenderOSXPath)
p = subprocess.Popen(BlenderOSXPath)
_ = subprocess.Popen(BlenderOSXPath)
logger.info(f"Executing {BlenderOSXPath}")

def exec_linux(self):
p = subprocess.Popen(os.path.join(f"{dir_}/blender"))
_ = subprocess.Popen(os.path.join(f"{dir_}/blender"))
logger.info(f"Executing {dir_}blender")


Expand Down

0 comments on commit 53d0f83

Please sign in to comment.