# Path: sunflower/common.py
# def executable_exists(command):
# 	"""Check if specified command exists in search path"""
# 	default_paths = os.pathsep.join(('/bin', '/usr/bin', '/usr/local/bin'))
# 	search_paths = os.environ.get('PATH', default_paths).split(os.pathsep)
# 	found_commands = [path for path in search_paths if os.path.exists(os.path.join(path, command))]
# 
# 	return len(found_commands) > 0


import sys
from gi.repository import Gtk, Gdk
from subprocess import check_output, run
from threading import Thread
from sunflower.common import executable_exists



class Clipboard:
	"""Support for various clipboard implementations accross different platforms
	and different protocols."""

	def __init__(self):

# Path: sunflower/common.py
# def executable_exists(command):
# 	"""Check if specified command exists in search path"""
# 	default_paths = os.pathsep.join(('/bin', '/usr/bin', '/usr/local/bin'))
# 	search_paths = os.environ.get('PATH', default_paths).split(os.pathsep)
# 	found_commands = [path for path in search_paths if os.path.exists(os.path.join(path, command))]
# 
# 	return len(found_commands) > 0


# Path: sunflower/clipboard.py
import sys
from gi.repository import Gtk, Gdk
from subprocess import check_output, run
from threading import Thread
from sunflower.common import executable_exists




class Clipboard:
	"""Support for various clipboard implementations accross different platforms
	and different protocols."""

	def __init__(self):

		self.text_support = []