Skip to content

Commit b9dd8bd

Browse files
author
stonebig
committed
bug fix
1 parent 1fe891b commit b9dd8bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

winpython/wppm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,14 @@ def __init__(self, target=None, verbose=False, indent=False):
230230
self.verbose = verbose
231231
self.indent = indent
232232
self.logdir = None
233+
234+
# if no target path given, take the current python interpreter one
235+
if self.target is None:
236+
self.target = os.path.dirname(sys.executable)
237+
233238
self.init_log_dir()
234239
self.to_be_removed = [] # list of directories to be removed later
235240

236-
# if no target path given, take the current python interpreter one
237-
if target == None:
238-
target = os.path.dirname(sys.executable)
239241
self.version, self.architecture = utils.get_python_infos(target)
240242

241243
def clean_up(self):

0 commit comments

Comments
 (0)