sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00748
[Question #142166]: Sikuli IDE vs. NetBeans: Windows: filenames need double backslash
New question #142166 on Sikuli:
https://answers.launchpad.net/sikuli/+question/142166
The following code executes perfectly in the Netbeans editor using Sikuli 10.2 yet when executed in the Sikuli 10 IDE
"NameError: name 'filename' is not defined'
Error returned on W7x32
import glob
import os
import subprocess
import ConfigParser
import string
import commands
config = ConfigParser.RawConfigParser()
config.read('C:\\SikuliTest\\UserB.ini')
global WebPath
WebPath =('Z:\\ZZZautomation\\Web\\')
BuildPath = ("Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install")
BuildNumber = glob.glob("Z:\BUILDS\Daily_BUILDS\QA_MainBranch_Install\*.install")
for filename in BuildNumber:
SmokeTestInfo = "SmokeTest_Build " + filename[45:50] + " Iteration 44"+".htm"
global Number
Number = filename[45:50]
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.