Difference between revisions of "Sample scripts.relax disp.return offset data"
Jump to navigation
Jump to search
(→How to) |
|||
| Line 1: | Line 1: | ||
== How to == | == How to == | ||
<source lang="python"> | <source lang="python"> | ||
| − | + | # Python module imports. | |
| + | from os import sep | ||
| + | import sys | ||
| + | |||
| + | # relax module imports. | ||
| + | from status import Status; status = Status() | ||
| + | |||
| + | # Add to sys path | ||
| + | sys.path.append(status.install_path+sep+"sample_scripts"+sep+"relax_disp") | ||
| + | |||
| + | |||
| + | |||
</source> | </source> | ||
| − | |||
== See also == | == See also == | ||
[[Category:sample_scripts]] | [[Category:sample_scripts]] | ||
Revision as of 20:33, 6 March 2014
How to
# Python module imports.
from os import sep
import sys
# relax module imports.
from status import Status; status = Status()
# Add to sys path
sys.path.append(status.install_path+sep+"sample_scripts"+sep+"relax_disp")