Skip to content

Commit

Permalink
update plug in manager GUI dialog to allow opening
Browse files Browse the repository at this point in the history
specific python modules within a package (other than __init__)
  • Loading branch information
Herm Fischer authored and Herm Fischer committed Mar 11, 2015
1 parent 11af6cf commit 3e8382e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arelle/DialogPluginManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ def findLocally(self):
defaultextension=".py")
if filename:
# check if a package is selected (any file in a directory containing an __init__.py
if (os.path.isdir(os.path.dirname(filename)) and
os.path.isfile(os.path.join(os.path.dirname(filename), "__init__.py"))):
filename = os.path.dirname(filename) # refer to the package instead
#if (os.path.basename(filename) == "__init__.py" and os.path.isdir(os.path.dirname(filename)) and
# os.path.isfile(filename)):
# filename = os.path.dirname(filename) # refer to the package instead
self.cntlr.config["pluginOpenDir"] = os.path.dirname(filename)
moduleInfo = PluginManager.moduleModuleInfo(filename)
self.loadFoundModuleInfo(moduleInfo, filename)
Expand Down

0 comments on commit 3e8382e

Please sign in to comment.