* Package comfortable-swipe with Python (#58) * Add initial python setup script * Add working initial python porting definition for comfortable-swipe * Add python extensions to cpp libraries * Remove boost and prefer vanilla Python.h implementation * Add main driver function for comfortable_swipe * Fix compilation for Python 3 * Remove depcreacted cpp scripts in root * Move script to entrypoint * Increment version to beta * Update variable formatting * Remove deprecated install script * Move install to post-install command * Create install script hooks * Fix bdist_wheel class errors * Use absolute path for c++ sources * Unignore index files * Move autostart to python * Allow comfortable swipe autostart for possible virtualenv * Completely port autostart to python * Move status to python * Optimize swipe function * Remove iostream optimization from buffer * Register pre-install and post-install in a stack * Remove underscores from value-defined macros * Compress default config * Change cpp to __init__.py * Error message * Bugfix for python2 * Use a requirements.txt * Add initial travis configuration * Attempt fix travis configuration * Attempt fix g++ error * Bugfix missing path dir on autostart * Add classifiers * Attempt install build-essential instead of g++ * Add missing psutil from requirements * Modify README * Attempt fix build errors in travis * Update README * Add simple build badges
18 lines
491 B
Python
18 lines
491 B
Python
import os
|
|
import sys
|
|
|
|
from distutils.spawn import find_executable
|
|
|
|
|
|
NAME = 'comfortable-swipe'
|
|
DESCRIPTION = 'Comfortable 3-finger and 4-finger swipe gestures'
|
|
BIN = os.path.dirname(sys.executable)
|
|
DIR = os.path.dirname(os.path.abspath(__file__))
|
|
PYTHON_NAME = os.path.basename(DIR)
|
|
RES = os.path.join(DIR, 'res')
|
|
CONFIG = os.path.join(sys.prefix, 'local', 'share', NAME, '{}.conf'.format(NAME))
|
|
DEFAULT_CONFIG = os.path.join(RES, 'defaults.conf')
|
|
|
|
def exe():
|
|
return find_executable(NAME)
|