Skip to content

Commit

Permalink
Merge pull request #815 from Arelle/fix-frozen-mac-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbronson-wk committed Aug 4, 2023
2 parents 3554cdd + 1adbfd6 commit fdaee72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arelleCmdLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
'''
import os
import sys
import regex as re

# Only imports for modules distributed as part of the standard Python library may go above this line.
# All other imports will result in module not found exceptions on the frozen macOS build.
if sys.platform == "darwin" and getattr(sys, 'frozen', False):
for i in range(len(sys.path)): # signed code can't contain python modules
sys.path.append(sys.path[i].replace("MacOS", "Resources"))

import regex as re

from arelle.SocketUtils import INTERNET_CONNECTIVITY, OFFLINE, warnSocket

internetConnectivityArgPattern = rf'--({INTERNET_CONNECTIVITY}|{INTERNET_CONNECTIVITY.lower()})'
Expand Down

0 comments on commit fdaee72

Please sign in to comment.