File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- #!/home/david/projects /python_colors/bin/python3
1+ #!/Users/davidaccomazzo/Projects /python_colors/bin/python
22""" Resources
33 * https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
44 * Good resource on how to manipulate terminal commands with Python
2424import argparse
2525import time
2626import json
27+ import os
2728
2829from colormath .color_objects import sRGBColor , LabColor
2930from colormath .color_conversions import convert_color
@@ -122,7 +123,7 @@ def allForegroundAndAllBackground():
122123
123124# Create a map of all ANSI colors and their conversions to different formats
124125def _getColorMap ():
125- f = open (" colors.json" )
126+ f = open (os . path . dirname ( os . path . realpath ( __file__ )) + "/ colors.json" )
126127 data = json .load (f )
127128 # Map the ANSI code to actual color dict
128129 colorsDict = {}
You can’t perform that action at this time.
0 commit comments