Return value description.
"""
- if outputPath == None:
+ if outputPath is None:
outputPath = ramp1dPath + ".spi1d"
# open image
Return value description.
"""
- if outputPath == None:
+ if outputPath is None:
outputPath = ramp3dPath + ".spi3d"
args = ["--extract",
except:\r
try:\r
user = os.getenv("USERNAME")\r
- if user == None:\r
+ if user is None:\r
user = os.getenv("USER")\r
except:\r
user = "unknown_user"\r
\r
# This is now used to ensure that the process has finished\r
line = ""\r
- while line != None and process.poll() == None:\r
+ while line != None and process.poll() is None:\r
try:\r
line = process.stdout.readline()\r
except:\r
argsStart = len(sys.argv) + 1\r
args = []\r
\r
- if cmd == None:\r
+ if cmd is None:\r
print("process: No command specified")\r
\r
#\r