Skip to content

Commit

Permalink
fix scripts for imp
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Sep 19, 2024
1 parent ad74568 commit 3588035
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions scripts/evol
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/usr/bin/env python

from prody.utilities.misctools import importImp
imp = importImp()
from prody.utilities.misctools import impLoadModule
import importlib
if sys.version_info[0] == 2:
path_prody = imp.find_module('prody')[1]
else:
path_prody = importlib.util.find_spec("prody").submodule_search_locations[0]
apps = imp.find_module('apps', [path])
apps = imp.load_module('prody.apps', *apps)

path_apps = importlib.util.find_spec("prody.apps").submodule_search_locations[0]
apps = impLoadModule('prody.apps.evol_apps', path_apps + '/evol_apps/', '__init__')

if __name__ == '__main__':
apps.evol_main()
12 changes: 4 additions & 8 deletions scripts/prody
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/usr/bin/env python

from prody.utilities.misctools import importImp
imp = importImp()
from prody.utilities.misctools import impLoadModule
import importlib
if sys.version_info[0] == 2:
path_prody = imp.find_module('prody')[1]
else:
path_prody = importlib.util.find_spec("prody").submodule_search_locations[0]
apps = imp.find_module('apps', [path])
apps = imp.load_module('prody.apps', *apps)

path_apps = importlib.util.find_spec("prody.apps").submodule_search_locations[0]
apps = impLoadModule('prody.apps.prody_apps', path_apps + '/prody_apps/', '__init__')

if __name__ == '__main__':
apps.prody_main()

0 comments on commit 3588035

Please sign in to comment.