New question #222218 on Sikuli:
https://answers.launchpad.net/sikuli/+question/222218

All I want to do in this script is just open a windows explorer window to a 
specific directory so that I can then use the IDE to interact with specific 
files to right click etc..

before I do that I just want to open "C:\tssmoketest\2014\"

there are several files in here I need to right click on to go to properties 
etc and i can handle that portion fine.

in my script I have:

import os
import subprocess

tsVersion = input("Enter your version ie.. 2013, 2014 etc:", "2014")

subprocess.Popen('explorer os.path.join('c:', os.sep, 'tssmoketest', 
tsVersion)')

this doesnt work as my formatting is incorrect.

So i try to get basic with it and just use:

subprocess.Popen('explorer "C:\tssmoketest\2014"')

and this works however it just keeps opening my local user profile documents 
folder and I dont know why this is.

I then try to use:

os.system('start "C:\tssmoketest\2014"')


and all this does is open a command line terminal with the file path c:\program 
files (x86)\Sikuli X>



I'm still learning python and reading here and there to learn on the fly so my 
apologies for the poor coding. Defintely putting notes in my scripts to help 
retain and learn along the way. 


I didn't think just opening a specific windows directory in windows explorer 
woudl be so hard.

I can do it another way which is:

type('r', KeyModifier.WIN)
wait("Typethenameo.png")
paste(os.path.join('c:', os.sep, 'tssmoketest', tsVersion, 'data01'))
type(Key.ENTER)


but its longer and its ugly and figured I could use somethign similar to 
someapp.open() 



Any help is much appreciated.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to