Skip to content

Commit

Permalink
backslashes for windows command
Browse files Browse the repository at this point in the history
  • Loading branch information
himynamesdave committed Jun 2, 2020
1 parent 4dbff76 commit 0dfe137
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ _MacOS / Linux:_

_Windows:_

`python nadir-patcher.py "samples/input/MULTISHOT_9698_000001.jpg" "samples/input/my_custom_nadir.png" 12 "samples/output/"`
`python nadir-patcher.py "samples\input\MULTISHOT_9698_000001.jpg" "samples\input\my_custom_nadir.png" 12 "samples\output\"`

**Take a directory of panoramic images and add a nadir covering 8% of every image in the directory:**

Expand All @@ -71,7 +71,7 @@ _MacOS / Linux:_

_Windows:_

`python nadir-patcher.py "samples/input/" "samples/input/my_custom_nadir.png" 8 "samples/output/"`
`python nadir-patcher.py "samples\input\" "samples\input\my_custom_nadir.png" 8 "samples\output\"`

## Branding guidelines

Expand Down
10 changes: 5 additions & 5 deletions nadir-patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
import shutil
import sys

folder_name="nadir_patcher_temp"
output1="nadir_patcher_temp\\temp_result1.png"
output2="nadir_patcher_temp\\temp_result2.png"
output3="nadir_patcher_temp\\temp_result3.png"

def main(argv):

main_file = sys.argv[1]
Expand All @@ -35,6 +30,11 @@ def main(argv):
#output = sys.argv[4]

output=sys.argv[4]+"\\"+output_file

output1="nadir_patcher_temp\\temp_result1"+nadir_file_extension
output2="nadir_patcher_temp\\temp_result2"+nadir_file_extension
output3="nadir_patcher_temp\\temp_result3"+nadir_file_extension

print('starting...')
if not os.path.exists(folder_name):
os.makedirs(folder_name)
Expand Down

0 comments on commit 0dfe137

Please sign in to comment.