mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
proton: pylint fixes
This commit is contained in:
parent
d0346080bd
commit
685f119488
8
proton
8
proton
@ -11,7 +11,6 @@ import json
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import errno
|
import errno
|
||||||
import struct
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tarfile
|
import tarfile
|
||||||
@ -128,8 +127,8 @@ class Proton:
|
|||||||
if not os.path.isdir(self.default_pfx_dir):
|
if not os.path.isdir(self.default_pfx_dir):
|
||||||
#make default prefix
|
#make default prefix
|
||||||
local_env["WINEPREFIX"] = self.default_pfx_dir
|
local_env["WINEPREFIX"] = self.default_pfx_dir
|
||||||
g_session.run_proc([self.wine, "wineboot"], local_env)
|
g_session.run_proc([self.wine_bin, "wineboot"], local_env)
|
||||||
g_session.run_proc([self.wineserver, "-w"], local_env)
|
g_session.run_proc([self.wineserver_bin, "-w"], local_env)
|
||||||
|
|
||||||
class CompatData:
|
class CompatData:
|
||||||
def __init__(self, compatdata):
|
def __init__(self, compatdata):
|
||||||
@ -647,7 +646,7 @@ class Session:
|
|||||||
os.chmod(tmpdir + "run", 0o755)
|
os.chmod(tmpdir + "run", 0o755)
|
||||||
|
|
||||||
def run_proc(self, args, local_env=None):
|
def run_proc(self, args, local_env=None):
|
||||||
if local_env == None:
|
if local_env is None:
|
||||||
local_env = self.env
|
local_env = self.env
|
||||||
subprocess.call(args, env=local_env, stderr=self.log_file, stdout=self.log_file)
|
subprocess.call(args, env=local_env, stderr=self.log_file, stdout=self.log_file)
|
||||||
|
|
||||||
@ -709,4 +708,5 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
#pylint --disable=C0301,C0326,C0330,C0111,C0103,R0902,C1801,R0914,R0912,R0915
|
||||||
# vim: set syntax=python:
|
# vim: set syntax=python:
|
||||||
|
Loading…
Reference in New Issue
Block a user