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


import os
import sys
from lib.clipboard import text_to_clipboards
#!/usr/bin/env python3

"""
Laszlo Szathmary, 2014 (jabba.laci@gmail.com)

Print just the name of the current directory.
For instance, if you are in "/home/students/solo",
then this script will print just "solo".

The output is also copied to the clipboard.

Usage: here

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




def main():
    text = os.path.split(os.getcwd())[1]
    print('# copied to the clipboard', file=sys.stderr)
    print(text)

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


# Path: here.py
import os
import sys
from lib.clipboard import text_to_clipboards

#!/usr/bin/env python3

"""
Laszlo Szathmary, 2014 (jabba.laci@gmail.com)

Print just the name of the current directory.
For instance, if you are in "/home/students/solo",
then this script will print just "solo".

The output is also copied to the clipboard.

Usage: here

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




def main():
    text = os.path.split(os.getcwd())[1]
    print('# copied to the clipboard', file=sys.stderr)
    print(text)

    text_to_clipboards(text)