zaturn 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
zaturn/config.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import argparse
2
2
  import os
3
3
  import platformdirs
4
+ import pkg_resources
4
5
  import sys
5
6
 
6
7
  # Basic Setup
@@ -37,7 +38,12 @@ if not source_list:
37
38
  source_list = args.sources
38
39
 
39
40
  if not source_list:
40
- source_list = [os.path.join(os.getcwd(), 'example_data', 'all_pokemon_data.csv')]
41
+ source_list = [
42
+ pkg_resources.resource_filename(
43
+ 'zaturn',
44
+ os.path.join('example_data', 'all_pokemon_data.csv')
45
+ )
46
+ ]
41
47
  print("No data sources provided. Loading example dataset for demonstration.")
42
48
  print(f"\nTo load your datasets, add them to {SOURCES_FILE} (one source URL or full file path per line)")
43
49
  print("\nOr use command line args to specify data sources:")