X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fprocess.py;h=527db138213f49de61eb02a71b150703f9dbaf5d;hp=24fb940d45bbb32a8dd2203fcba85bf197151cfc;hb=48d67eb8a5804cd9cabf0a22c3f421502b983b24;hpb=70a314dd5edd3eeadf3593ef37b908993db3e801 diff --git a/aces_1.0.0/python/aces_ocio/process.py b/aces_1.0.0/python/aces_ocio/process.py index 24fb940..527db13 100755 --- a/aces_1.0.0/python/aces_ocio/process.py +++ b/aces_1.0.0/python/aces_ocio/process.py @@ -190,7 +190,7 @@ class Process: except: try: user = os.getenv("USERNAME") - if user == None: + if user is None: user = os.getenv("USER") except: user = "unknown_user" @@ -438,7 +438,7 @@ class Process: # This is now used to ensure that the process has finished line = "" - while line != None and process.poll() == None: + while line != None and process.poll() is None: try: line = process.stdout.readline() except: @@ -724,7 +724,7 @@ def main(): argsStart = len(sys.argv) + 1 args = [] - if cmd == None: + if cmd is None: print("process: No command specified") #