sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47940
Re: [Question #671390]: How to build a path within an existing directory
Question #671390 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/671390
Ron Turrentine gave more information on the question:
I seem to have found the answer!
The code that appears to be a good, working replacement is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
FullPath = "C:\Screenshots\Sikuli_Test\08-05-18\ProdTest"
myPath = os.path.dirname(FullPath)
if not os.path.exists(myPath):
os.makedirs(myPath)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I am going to keep this open, though, to see if anyone has any other
suggestions. I would like to read them, as I am learning.
Thanks,
Ron
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.