File: pymcabatch

package info (click to toggle)
pymca 5.6.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 46,584 kB
  • sloc: python: 164,135; ansic: 20,050; sh: 175; makefile: 142; xml: 55
file content (18 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!python

import os
import sys
import PyMca5.PyMcaGui.pymca as target

fname = os.path.join(os.path.dirname(target.__file__), 'PyMcaBatch.py')
if sys.version < '3.0':
    execfile(fname)
else:
    f = open(fname, "rb")
    code_txt = f.read()
    f.close()
    if sys.version_info < (3, 6):
        code = compile(code_txt, fname, 'exec')
    else:
        code = code_txt
    exec(code)