コード例 #1
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib, sys
ifaceclientlib.LOG_LEVEL = ifaceclientlib.LOG_WARNING

# Check args.
if len(sys.argv) != 2:
  print "usage: if-l-cmd.py <cwd>"
  sys.exit(1)

# Invoke.
cwd = sys.argv[1]
print ifaceclientlib.Invoke("iface-l-cmd", cwd)


コード例 #2
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib, sys
ifaceclientlib.LOG_LEVEL = ifaceclientlib.LOG_WARNING

# Check args.
if len(sys.argv) != 2:
    print "usage: if-openurl.py <url>"
    sys.exit(1)

# Invoke.
url = sys.argv[1]
print ifaceclientlib.Invoke("iface-openurl", url)
コード例 #3
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib
print "Stopping WinLin iface: %s" % (str(ifaceclientlib.Invoke("__shutdown")))
コード例 #4
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib, sys
ifaceclientlib.LOG_LEVEL = ifaceclientlib.LOG_WARNING

# Check args.
if len(sys.argv) != 2:
    print "usage: if-testpath.py <path>"
    sys.exit(1)

# Invoke.
path = sys.argv[1]
print ifaceclientlib.Invoke("translate-path", path)
コード例 #5
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib
print ifaceclientlib.Invoke("iface-info")

コード例 #6
0
#!/usr/bin/python
#
# LICENSE: See LICENSE file.
#
# WARNING: The Windows/Linux iface by is EXPERIMENTAL and has nothing to do
#          with good coding, security, etc. USE AT YOUR OWN RISK.
#
import ifaceclientlib, sys, os
ifaceclientlib.LOG_LEVEL = ifaceclientlib.LOG_WARNING

# Check args.
if len(sys.argv) < 2:
    print "usage: if-l-runt.py <cmd> <args>"
    sys.exit(1)

# Invoke.
cmd = sys.argv[1]
args = " ".join(sys.argv[2:])
cwd = ifaceclientlib.Invoke("translate-path", os.getcwd())
print ifaceclientlib.Invoke("iface-l-runt", cwd, cmd, args)