システムでpy.saunterを設定しているときに、saunter.iniファイルのIOエラーが発生します。
ディレクトリ構造は、例に示されているとおりです-https://github.com/Element-34/Py.Saunter-Examples
以下はエラーメッセージです-
IOError: [Errno 2] No such file or directory: '/src/conf/saunter.ini'
ERROR: Module: Tests could not be imported
(file:/Users/.../PythonWorkspace/PySaunter/src/scripts/Tests.py)
輸入関連の質問がたくさんあることを私は知っています。それらのほとんどは、まだそこにない場合は、init.pyを追加することを提案します。すべてのフォルダーにinit.pyを追加しました。
saunter.iniを読み取るコードスニペットは次のとおりです-
def configure(self, config = "saunter.ini"):
self.config = ConfigParser.SafeConfigParser()
self.config.readfp(open(os.path.join("conf", config)))
どんな助けもいただければ幸いです...