Project

General

Profile

Package executable alias name in Appion » History » Version 12

Anchi Cheng, 01/25/2018 05:00 PM

1 1 Anchi Cheng
2 3 Anchi Cheng
Appion scripts interact with external packages in one of the two ways: Executing a shell command, or through python call.  The name of the file in the call may not be the same as the standard installation as described by the package distributor.
3
4
If it is accessed from shell, you should either create soft link (preferred) or rename the file you downloaded (not best practice since you may get confused later. Test its accessibility from the environment you would run appion script.
5
6
For example, ctffin4 of whatever version would typically installed in /usr/local/bin.  The executable file in there is called ctffind4.exe.  You should do
7
<pre>
8
cd /usr/local/bin
9 4 Patrick Goetz
ln -s ctffind64.exe ctffind4
10 3 Anchi Cheng
</pre>
11
12
Next time, when you start a shell, try:
13
<pre>
14
which ctffind4
15
</pre>
16 4 Patrick Goetz
It should be able to find the link and the actual executable file.ctffind64.exe
17 3 Anchi Cheng
18
For files called through python, the file need to be in the environment variable PYTHONPATH  You can test it in the appion environment with an import test.
19
<pre>
20
python
21
python> import deProcessFrames
22 1 Anchi Cheng
</pre>
23 10 Anchi Cheng
24
h2. Program/module call alias name in Appion (myami-3.3, myami-beta branches, and trunk)
25 3 Anchi Cheng
26 12 Anchi Cheng
{{package alias table}}