File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -225,13 +225,17 @@ class Distribution(object):
225225 # PyQt module is now like :PyQt4-...
226226 NSIS_PACKAGES = ('PyQt4' , 'PyQwt' , 'PyQt5' ) # known NSIS packages
227227
228- def __init__ (self , target , verbose = False , indent = False ):
228+ def __init__ (self , target = None , verbose = False , indent = False ):
229229 self .target = target
230230 self .verbose = verbose
231231 self .indent = indent
232232 self .logdir = None
233233 self .init_log_dir ()
234234 self .to_be_removed = [] # list of directories to be removed later
235+
236+ # if no target path given, take the current python interpreter one
237+ if target == None :
238+ target = os .path .dirname (sys .executable )
235239 self .version , self .architecture = utils .get_python_infos (target )
236240
237241 def clean_up (self ):
You can’t perform that action at this time.
0 commit comments