sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02822
Re: [Question #157247]: How to check whether directory exists
Question #157247 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/157247
KingRider posted a new comment:
Work here a fine:
import os
baseDir = r"c:\temp"; # LOCAL YOUR DIRECTORY
newDir = "newDir"; # TO ADD NEW DIRECTORY
makeDir = os.path.join(baseDir, newDir);
if not os.path.exists(makeDir): os.mkdir(makeDir);
Not use single quotation marks (') is best use double quotation marks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.