Skip to content

Commit

Permalink
fixed bug for scripts installed with setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rtmigo committed Mar 4, 2021
1 parent f42a1fd commit 739ed22
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

scriptParentDir="$(dirname "$(perl -MCwd -e 'print Cwd::abs_path shift' "$0")")"
cd "$scriptParentDir"

# pip3 install --upgrade pip && pip3 install setuptools wheel twine
rm -rf ./build ./dist
python3 setup.py sdist bdist_wheel


3 changes: 1 addition & 2 deletions depz/x00_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = "0.0.3"

__version__ = "0.0.4"
5 changes: 4 additions & 1 deletion depz/x99_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"""


def runmain(programArgs: List[str]):
def runmain(programArgs: List[str] = None):
if programArgs is None:
programArgs = sys.argv[1:]

import argparse

parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 739ed22

Please sign in to comment.