- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: locating python modules
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2008 05:02 PM
тАО09-17-2008 05:02 PM
I also do have a pythonpath entry that points to the top directory of the Python code, but I am not sure exactly what this is getting me? I really would rather not play around with the paths as the code is in a configuration management system and can be dropped anywhere. What I wish would happen is that when I execute the script, its environment would be where it exists, not where it is called from, but it does not look like this is going to happen.
Ideas?
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2008 09:13 PM
тАО09-17-2008 09:13 PM
Re: locating python modules
$ prog == "pipe (set default xx ; prog)
refards kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2008 09:18 PM
тАО09-17-2008 09:18 PM
Solutionif you invoke your script using a Unix syntax the directory of the the script is automatically added to the path used by Python to locate module.
For example
python /dev/dir/myscript.py
instead of
python dev:[dir]myscript.py
I will lift this restriction sometime...
JF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2008 08:01 AM
тАО09-18-2008 08:01 AM
Re: locating python modules
Thanks! Your solution worked for me. I was hoping there would be an easy solution. I had no idea I could even use unix style paths when I was invoking python!
Thanks again,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2008 08:05 AM
тАО09-18-2008 08:05 AM
Re: locating python modules
Thanks for the excellent info. Although JF's solution is the way we will go, I had no idea I could emulate this type of unix alias in openvms. There may be places down the road where we will make use of it.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2008 08:15 AM
тАО09-18-2008 08:15 AM