Skip to content

Commit

Permalink
fixed absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsgalore committed Mar 5, 2020
1 parent c6310ed commit 38bae1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iromlab/configure.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def main_is_frozen():

def get_main_dir():
if main_is_frozen():
return os.path.abspath(os.path.dirname(sys.executable))
return os.path.abspath(os.path.dirname(sys.argv[0]))
return os.path.dirname(sys.executable)
return os.path.dirname(sys.argv[0])


def post_install():
Expand All @@ -68,7 +68,7 @@ def post_install():
scriptsDir = get_main_dir()

# Package directory (parent of scriptsDir)
packageDir = os.path.join(scriptsDir, os.pardir)
packageDir = os.path.abspath(os.path.join(scriptsDir, os.pardir))

# Part 1: install config file

Expand Down

0 comments on commit 38bae1b

Please sign in to comment.