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

dump file with relative path #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

caohong
Copy link

@caohong caohong commented Jan 19, 2013

join current working path if the dump path is not absolute:
m3u8_obj.dump('path1/index.m3u8') instead of m3u8_obj.dump('c:/workingdir/path1/index.m3u8')

join current working path if the dump path is not absolute.
@jbochi
Copy link
Contributor

jbochi commented Jan 19, 2013

Hi caohong,

Thanks for your contribution. I agree that this is an useful feature, but I can't merge it without tests. I would appreciate if you included them on this pull request.

Juarez

@leandromoreira
Copy link
Contributor

@caohong are thinking about adding tests?

@caohong
Copy link
Author

caohong commented Jun 11, 2015

ok. I'll do it @leandromoreira

@leandromoreira
Copy link
Contributor

@caohong ping?

@KuldeepBorkar
Copy link
Contributor

@leandromoreira , @jbochi If this has not been implemented yet can I implement the same with test cases in a new PR??

@leandromoreira
Copy link
Contributor

@KuldeepBorkar I think you can but I'd leave the decision to @mauricioabreu :) as he's the most active member rn.

@mauricioabreu
Copy link
Member

@KuldeepBorkar please, go ahead!

@@ -181,6 +181,8 @@ def dump(self, filename):
fileobj.write(self.dumps())

def _create_sub_directories(self, filename):
if (os.path.isabs(filename) == False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most style guides would prefer:

Suggested change
if (os.path.isabs(filename) == False):
if not os.path.isabs(filename):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants