Skip to content

Commit 00ff356

Browse files
committed
fix: fix import in conda forge mapping logic
Modified: • src/omnipkg/commands/run.py (+2/-1 lines) [gitship-generated]
1 parent f244ccf commit 00ff356

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/omnipkg/commands/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,9 @@ def get_conda_forge_mapping(import_name):
10111011
Checks the conda-forge 'County Fair' mapping for import_name -> pypi_name.
10121012
Downloads, caches to disk, and loads into memory to maintain lightning speed.
10131013
"""
1014+
global _CF_CACHE_LOADED, _CF_MAPPING_CACHE
10141015
import os, time, urllib.request, re
1015-
1016+
10161017
# Return instantly if we already loaded it this session
10171018
if _CF_CACHE_LOADED:
10181019
return _CF_MAPPING_CACHE.get(import_name)

0 commit comments

Comments
 (0)