Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an output folder for the output file #5

Closed
boratonAJ opened this issue Apr 27, 2019 · 1 comment
Closed

Create an output folder for the output file #5

boratonAJ opened this issue Apr 27, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@boratonAJ
Copy link
Owner

Add an output folder path
Truncate the input file path and get the input file name only excluding the file extension

with open(filename[:-3]+'freq', 'w') as my_file:

@boratonAJ
Copy link
Owner Author

boratonAJ commented Apr 27, 2019

Added an output folder path
Truncated the input file path and got the input file name only excluded the file extension.

output_filename = 'Data/output/' + filename.split("/")[2][:-3] +'freq'
with open(output_filename, 'w') as my_file:

@boratonAJ boratonAJ self-assigned this Apr 27, 2019
@boratonAJ boratonAJ added the enhancement New feature or request label Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant