diff --git a/README.md b/README.md index 9813904..87d03b9 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ Install Frbgui with ```pip install --user frbgui``` -Oct 4 2022: Please note there are some install breaking issues, see [Issues](https://github.com/mef51/frbgui/issues) #10, #11, #12, #13. Cloning the entire repo and running from there is an appropriate workaround. - ## Usage Run from the command-line with the following command to start in your current working directory: diff --git a/frbgui.py b/frbgui.py index 9a8c5bd..fbfcb76 100644 --- a/frbgui.py +++ b/frbgui.py @@ -1433,6 +1433,9 @@ def frbgui(filefilter=gdata['globfilter'], dpg.start_dearpygui(primary_window='main') # blocks til closed return gdata +def main(): # windows cli + frbgui(datadir=os.getcwd()) + if __name__ == '__main__': frbgui( # datadir='B:\\dev\\frbgui\\SurveyFRB20121102A\\data\\simulated', diff --git a/setup.py b/setup.py index f1f8952..3fbf9f2 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def readme(): setuptools.setup( name="frbgui", - version="0.9", + version="0.91", author="Mohammed Chamma", author_email="mchamma@uwo.ca", description="GUI and utilities for processing Fast Radio Burst waterfalls", @@ -30,5 +30,8 @@ def readme(): "Topic :: Scientific/Engineering :: Astronomy" ], python_requires='>=3.6', - scripts=['bin/frbgui'] + scripts=['bin/frbgui'], + entry_points={ + 'console_scripts': ['frbgui=frbgui:main'] + } )