Changeset 456 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Jan 24, 2012 2:31:27 PM (10 years ago)
Author:
toby
Message:

determine path to GSAS files from file; trap & reset focus for tree traversal with arrow keys; move wxinspector to after app creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r411 r456  
    3535    ElS = El.upper()
    3636    ElS = ElS.rjust(2)
    37     filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
     37    filename = os.path.join(os.path.split(__file__)[0],'atmdata.dat')
    3838    try:
    3939        FFdata = open(filename,'Ur')
     
    8585    else:
    8686        ElS = El.upper()[:1].rjust(2)
    87     filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
     87    filename = os.path.join(os.path.split(__file__)[0],'atmdata.dat')
    8888    try:
    8989        FFdata = open(filename,'Ur')
     
    147147    ElS = El.upper()
    148148    ElS = ElS.ljust(2)
    149     filename = os.path.join(os.path.split(sys.argv[0])[0],'Xsect.dat')
     149    filename = os.path.join(os.path.split(__file__)[0],'Xsect.dat')
    150150    try:
    151151        xsec = open(filename,'Ur')
     
    222222    ElS = El.upper()
    223223    ElS = ElS.rjust(2)
    224     filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
     224    filename = os.path.join(os.path.split(__file__)[0],'atmdata.dat')
    225225    try:
    226226        FFdata = open(filename,'Ur')
Note: See TracChangeset for help on using the changeset viewer.