Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apsbss IOC starter script example has wrong python directory #423

Closed
prjemian opened this issue Sep 21, 2020 · 2 comments
Closed

apsbss IOC starter script example has wrong python directory #423

prjemian opened this issue Sep 21, 2020 · 2 comments
Assignees
Milestone

Comments

@prjemian
Copy link
Contributor

Documentation for the apsbss_ioc.sh starter shell script has a fixed python version in the path for APSTOOLS (${BLUESKY}/lib/python3.7/site-packages/apstools). Ran into a problem today where python 3.8 was used.

Need to make this example script more robust.

@prjemian prjemian added this to the 1.3.8 milestone Sep 21, 2020
@prjemian prjemian self-assigned this Sep 21, 2020
@prjemian
Copy link
Contributor Author

We can learn the full path to the installed apstools from the default python, such as:

$ python -c "import apstools; print(apstools.__file__)"
/share1/bluesky/conda_envs/bluesky_2020_9/lib/python3.8/site-packages/apstools/__init__.py
$ dirname `python -c "import apstools; print(apstools.__file__)"`
/share1/bluesky/conda_envs/bluesky_2020_9/lib/python3.8/site-packages/apstools

@prjemian
Copy link
Contributor Author

To eliminate the backticks, try this alternative:

$ dirname $(python -c "import apstools; print(apstools.__file__)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant