# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/clipboard.py
# def text_to_clipboards(text):
#     """Copy text to both clipboards."""
#     to_primary(text)
#     to_clipboard(text)


import os
import sys
import config as cfg
from lib import fs
from lib.clipboard import text_to_clipboards
#!/usr/bin/env python3

"""
Website: https://ubuntuincident.wordpress.com/2011/03/17/show-the-absolute-path-of-a-file/
Laszlo Szathmary, 2011 (jabba.laci@gmail.com)

Print the absolute path of a file (sp.py means "show path").
If no parameter is passed, show the current path.
The output is also copied to the clipboards.

Usage: sp <filename> [-n]

The option "-n" means normal output, i.e. spaces are not protected with
a backslash.

Last update: 2017-01-09 (yyyy-mm-dd)
"""




# Path: lib/fs.py
# def check_if_available(prg, msg):
# 
# Path: lib/clipboard.py
# def text_to_clipboards(text):
#     """Copy text to both clipboards."""
#     to_primary(text)
#     to_clipboard(text)


# Path: sp.py
import os
import sys
import config as cfg
from lib import fs
from lib.clipboard import text_to_clipboards

#!/usr/bin/env python3

"""
Website: https://ubuntuincident.wordpress.com/2011/03/17/show-the-absolute-path-of-a-file/
Laszlo Szathmary, 2011 (jabba.laci@gmail.com)

Print the absolute path of a file (sp.py means "show path").
If no parameter is passed, show the current path.
The output is also copied to the clipboards.

Usage: sp <filename> [-n]

The option "-n" means normal output, i.e. spaces are not protected with
a backslash.

Last update: 2017-01-09 (yyyy-mm-dd)
"""




fs.check_if_available(cfg.XSEL, "Error: {} is not available!".format(cfg.XSEL))