sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #52673
Re: [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846
Status: Open => Answered
RaiMan proposed the following answer:
as already mentioned in #1:
getBundleFolder() in your environment returns None (no bundle path
defined)
try this:
scriptFile = argv[0] # Python standard behavior
scriptFolder = os.path.dirname(scriptFile)
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(makePath(scriptFolder, 'logs', strLogName))
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.