import sys, os, os.path, re, string, time, thread, logging, copy, math, stat
from pysys import log
from pysys.constants import *
from pysys.process.helper import ProcessWrapper
def __stringToUnicode( s):
""" Converts a unicode string or a utf-8 bit string into a unicode string.
"""
if isinstance(s, unicode):
return s
else:
return unicode(s, "utf8")
environ ={}
for key in environ: environ[__stringToUnicode(key)] = __stringToUnicode(environ[key])
process = ProcessWrapper("C:\\Program Files\\Mozilla Firefox\\firefox", arguments=None, environs=environ, workingDir=None, state=FOREGROUND, timeout=None, stdout=None, stderr=None)
process.start()
我收到这个错误..
process = ProcessWrapper("notepad", arguments=None, environs=environ, workingDir=None, state=FOREGROUND, timeout=None, stdout=None, stderr=None)
File "C:\Python27\lib\site-packages\pysys\process\plat-win32\helper.py", line 105, in __init__
for a in self.arguments: log.debug(" argument : %s", a)
TypeError: 'NoneType' object is not iterable
我是pysys的新手。请帮帮我。