Skip to content

Commit

Permalink
Merge pull request #1400 from jacol84/run-on-win
Browse files Browse the repository at this point in the history
fixed #1399 "UnboundLocalError: local variable 'playHome' referenced before assignment
  • Loading branch information
xael-fry authored Apr 12, 2022
2 parents b1729b1 + 97a8c2c commit 4a41d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/pym/play/commands/intellij.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def execute(**kargs):
shutil.copyfile(os.path.join(play_env["basedir"], 'resources/idea/imlTemplate.xml'), imlFile)
cpXML = ""

playHome = play_env["basedir"].replace('\\', '/')
playHomeAlternative = app.toRelative(playHome).replace('\\', '/')
if playHomeAlternative[0:2] == "..":
playHome = "$MODULE_DIR$/" + playHomeAlternative
Expand Down

0 comments on commit 4a41d32

Please sign in to comment.