File: gm-import_incoming

package info (click to toggle)
gnumed-client 1.8.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 37,672 kB
  • sloc: python: 126,459; javascript: 6,113; sh: 1,192; xml: 36; makefile: 33
file content (26 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

#==================================================
# This shell script is intended to be placed in
# /usr/bin/ and should be run to use the importer
# for external files into the INCOMING area of
# GNUmed.
#
# license: GPL v2 or later
# Karsten Hilbert
#--------------------------------------------------

# for debugging this script
# set -x

OPTIONS=$@


# packages which install the GNUmed python modules into a path not
# already accessible for imports via sys.path (say, /usr/share/gnumed/)
# may need to adjust PYTHONPATH appropriately here
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/usr/share/gnumed/"


# now run the actual script
python3 -m Gnumed.importers.gmImportIncoming ${OPTIONS}