Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Dec 8, 2023
1 parent 34edd8b commit 95bd9d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion menuinst/_legacy/cwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import sys
from os.path import join, pathsep

from menuinst._legacy.knownfolders import FOLDERID, get_folder_path
# this must be an absolute import since the cwp.py script is copied to $PREFIX
from menuinst.knownfolders import FOLDERID, get_folder_path

# call as: python cwp.py [--no-console] PREFIX ARGs...
parser = argparse.ArgumentParser()
Expand Down
7 changes: 3 additions & 4 deletions menuinst/_legacy/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import sys
from os.path import join

import menuinst._legacy as menuinst

from .. import __version__, install
from ..utils import DEFAULT_PREFIX


Expand All @@ -20,11 +19,11 @@ def main():
opts, args = p.parse_args()

if opts.version:
sys.stdout.write("menuinst: %s\n" % menuinst.__version__)
sys.stdout.write("menuinst: %s\n" % __version__)
return

for arg in args:
menuinst.install(join(opts.prefix, arg), opts.remove, opts.prefix)
install(join(opts.prefix, arg), opts.remove, opts.prefix)


if __name__ == '__main__':
Expand Down

0 comments on commit 95bd9d2

Please sign in to comment.