JamesRamm / archook

Searches the system for arcgis and makes arcpy available to python (regardless of pythonpath/system path/registry settings)
GNU General Public License v2.0
81 stars 28 forks source link

Skip conda-meta check for python 2.7 #24

Closed mhw-at-yg closed 4 years ago

mhw-at-yg commented 4 years ago

Recent addition verify_conda_meta_dir() uses f-strings which don't exist in python 2.7. This function can be skipped entirely for 2.7 as the problem it's reporting on doesn't apply.

(archook-py27-32) D:\code\public\archook\test>python simple-test-arcmap.py
========================================
Traceback (most recent call last):
  File "simple-test-arcmap.py", line 4, in <module>
    import archook
  File "d:\code\public\archook\archook\__init__.py", line 1, in <module>
    from .archook import locate_arcgis, get_arcpy
  File "d:\code\public\archook\archook\archook.py", line 57
    """)
      ^
SyntaxError: invalid syntax
mhw-at-yg commented 4 years ago

No good. Commit fb0c710 fixes py2 but breaks py3.