sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07978
Re: [Question #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/184141
Status: Open => Answered
RaiMan proposed the following answer:
This should do what you want:
import os
dir = r"C:\Users\Raimund Hocke" # specify your own folder
path = os.path.join(dir, "some-file")
os.popen('start notepad.exe "%s"'%(path))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.