Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 Status: Open => Answered RaiMan proposed the following answer: With Sikuli you should have your own modules in /Lib, since this works with all variants. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 Mark requested more information: Hey, what about for .pth files? I am trying to register a file-system path but haven't had any luck. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 RaiMan requested more information: @Mark what exactly are you talking about? -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 Mark requested more information: I am trying to add a path to python's module search path. Instead of writing in every file: myPath = "path/to/user/defined/modules" if not myPath in sys.path: append(myPath) I want to just add myPath to python's default module search path so it will check the path by default. I've tried changing the PYTHONPATH environment variable and using site-packages but neither have worked. I am on Windows 7. Any ideas? -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 RaiMan proposed the following answer: @Mark path-to-sikuli-.jar/Lib is always in sys.path automatically, when using Sikuli's bundled Jython. So for version 1.0.1 it is path-to-setup-folder/Lib (the folder containing the setup Sikuli stuff) for RC3 c:\Program Files\Sikuli X\Lib the folder is usually not there, so it has to be created. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 Mark requested more information: Is there any way to put them in a different folder? It doesn't really make sense for me to use those folders. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 RaiMan proposed the following answer: @Mark You might try JYTHONPATH environment variable, since we are running Jython not Python. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #236124]: Import Lib/site-packages the same way as -i option
Question #236124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236124 Mark posted a new comment: Thanks RaiMan, using the (user) Environment variable 'JYTHONPATH' worked. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp