Difference between revisions of "Sample scripts.relax disp.return offset data"

From relax wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== How to ==
 
== How to ==
 
<source lang="python">
 
<source lang="python">
print "hle"
+
# 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")

See also